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

@nfq/eslint-config

v4.0.0-beta.23

Published

Eslint configuration for all nfq projects

Downloads

731

Readme

eslint-config-nfq

EsLint



Description: License: MIT

This is the shared ESLint configuration used by .NFQ projects. It targets ESLint flat config, includes JavaScript, TypeScript, React, and Cypress overrides, and ships a small set of custom @nfq/* rules.


Getting started

Installation

npm install -D @nfq/eslint-config
yarn add -D @nfq/eslint-config
pnpm add -D @nfq/eslint-config

PeerDependencies

  • eslint >= 9

Usage

Create eslint.config.mjs (flat config) and follow the structure used in this repo:

import {defineConfig} from 'eslint/config';

import {NFQEslintConfig} from '@nfq/eslint-config';

export default defineConfig([
    {
        extends: [NFQEslintConfig],
        ignores: [
            'dist/**/*',
            'types/**/*'
        ]
    }
]);

This config provides:

  • JS, TS, and Cypress overrides
  • TypeScript parser and project discovery
  • Shared plugins and settings
  • Defaults for globals and common resolvers

Custom rules

All custom rules live under the @nfq namespace.

| Rule | Description | | --- | --- | | @nfq/component-file-structure | Enforce React component file layout, displayName assignment, and named exports. | | @nfq/component-single-hook | Allow at most one hook call plus guard clauses and returns in component bodies. | | @nfq/cypress-mount-hook | Enforce cy.mountHook(s) usage and required then chaining in Cypress tests. | | @nfq/hexagonal-dependency-direction | Enforce hexagonal dependency direction and boundary-specific imports. | | @nfq/no-empty-lines-in-objects | Disallow empty lines inside object literals. | | @nfq/no-empty-lines-in-types | Disallow empty lines inside TypeScript interface and type literal bodies. | | @nfq/no-magic-numbers | Disallow magic numbers with configurable exceptions. | | @nfq/no-unbound-method | Warn on unbound class methods used as callbacks and forbid constructor binding. | | @nfq/object-property-newline | Enforce object properties on separate lines, with configurable exceptions. | | @nfq/require-getcy | Require cy.getCy instead of cy.get (except aliases). | | @nfq/sort-keys | Require object keys to be sorted. | | @nfq/styled-components-order | Enforce styled component definition order and dependency order. |


Extending the config

You can extend settings, globals, and rules without redeclaring everything by importing the exported helpers.

Extend settings

import {NFQEslintConfig, settings} from '@nfq/eslint-config';

export default [
    ...NFQEslintConfig,
    {
        settings: {
            ...settings.settings,
            '@nfq': {
                ...settings.settings['@nfq'],
                ignoredProperties: ['xs', 'sm', 'md', 'lg', 'xl', 'xxl', 'xxxl']
            }
        }
    }
];

Extend globals

import {NFQEslintConfig, globals} from '@nfq/eslint-config';

export default [
    ...NFQEslintConfig,
    {
        languageOptions: {
            globals: {
                ...globals,
                MY_GLOBAL: 'readonly'
            }
        }
    }
];

Extend rules

import {NFQEslintConfig} from '@nfq/eslint-config';
import {nfq} from '@nfq/eslint-config/rules/common/plugins';

export default [
    ...NFQEslintConfig,
    {
        rules: {
            '@nfq/no-magic-numbers': [nfq['@nfq/no-magic-numbers'][0], {
                ...nfq['@nfq/no-magic-numbers'][1],
                ignoreFunctions: [...nfq['@nfq/no-magic-numbers'][1].ignoreFunctions, 'myFunction']
            }]
        }
    }
];

Support

Christoph Kruppe - [https://github.com/ckruppe] - [email protected]