npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

eslint-plugin-ferramentas

v2.0.1

Published

A bundle of useful ESLint rules

Downloads

2,336

Readme

eslint-plugin-ferramentas

This package contains 3 ESLint rules. As all these rules need configuration by default, no plugin preset is exported. Install it by running npm install --save-dev eslint-plugin-ferramentas

Rules

import-spaces

Enforces consistency of spacing between relative imports according to the folder each imports reference. Imports are grouped as defined in the configuration, spaces are only allowed between the groups. Non relative imports, and relative imports without a specified group will be considered to be each in their own group, thus having spaces between them as well.

Configuration

To configure the rule on .eslintrc.js, simply add:

/** @type {import('eslint-plugin-ferramentas').Options['import-spaces']} */
const options = {
    groups: ['^foo.*$', '^bar.*$'],
};

module.exports = { rules: { 'ferramentas/import-spaces': ['error', options] } };

Possible errors examples

🔧 Automatic fixes available

There should be no empty lines in a import group

There should be one empty line between import groups

Fixes

When configured with:

{
    "groups": ["^foo.*$", "^bar.*$"]
}

Will change:

import { DomainType } from 'static';

import { FooA } from './foo/a';

import { FooB } from './foo/b';
import { Bar } from './bar';

import { Other } from './other';

To:

import { DomainType } from 'static';

import { FooA } from './foo/a';
import { FooB } from './foo/b';

import { Bar } from './bar';

import { Other } from './other';

relative-import-order

Ensure relative imports appear in a specific order as set on the configuration. The paths must be set with root paths and not from the perspective of the files where the import actually happens.

Configuration

To configure the rule on .eslintrc.js, simply add:

/** @type {import('eslint-plugin-ferramentas').Options['relative-import-order']} */
const options = {
    sort: [
        {
            type: 'group',
            groups: ['src/utils', 'src/domain', 'src/react'],
        },
        {
            type: 'depth',
        },
        {
            type: 'name',
        },
    ],
};

module.exports = { rules: { 'ferramentas/relative-import-order': ['error', options] } };

Possible errors examples

🔧 Automatic fixes available

The path './foo/bar' is not listed. All imported paths need to be included, either in the groups (so they are sorted) or ignored

Imports from './foo' should be above the import from './bar'

Fixes

When configured with:

{
    "sort": [
        {
            "type": "group",
            "groups": ["top-library", "bottom-library"]
        },
        {
            "type": "depth"
        },
        {
            "type": "name"
        }
    ]
}

Will change (while on the file ./bottom-library/ExampleImporter.tsx):

import { Label } from '../bottom-library';
import { isBufferValid } from '../top-library';
import { SpanishInquisition } from '../non-listed/import-path';

To:

import { isBufferValid } from '../top-library';
import { Label } from '../bottom-library';
import { SpanishInquisition } from '../non-listed/import-path';

siloed-relative-import

Prevents importing of files in specific folders from other specified locations of the codebase through regex.

Configuration

To configure the rule on .eslintrc.js, simply add:

/** @type {import('eslint-plugin-ferramentas').Options['siloed-relative-import']} */
const options = {
    directories: [
        {
            filter: '^src/react',
            forbid: ['^src/http'],
        },
    ],
};

module.exports = { rules: { 'ferramentas/siloed-relative-import': ['error', options] } };

Possible errors examples

Importing of './foo' is forbidden on './moo'