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 🙏

© 2025 – Pkg Stats / Ryan Hefner

eslint-config-everything

v0.0.0

Published

A comprehensive ESLint configuration tailored for JavaScript and TypeScript projects, optimized for React, accessibility (jsx-a11y), import ordering, and overall code quality. Supports modern syntax and best practices with full TypeScript integration.

Downloads

2

Readme

eslint-config-everything

A comprehensive ESLint configuration tailored for JavaScript and TypeScript projects, optimized for React, accessibility (jsx-a11y), import ordering, and overall code quality. Supports modern syntax and best practices with full TypeScript integration.


Features

  • Supports both JavaScript and TypeScript with appropriate parser options and recommended TypeScript rules
  • Includes React recommended rules with JSX and accessibility linting via eslint-plugin-jsx-a11y
  • Enforces import order with custom groups for React, MUI, Storybook, and internal paths
  • Integrates with Prettier to avoid formatting conflicts
  • Provides global environment settings for browser, Node.js, service workers, and testing frameworks like Mocha
  • Compatible with ESLint’s Flat Config format and modern plugin management
  • Rules to allow flexible coding styles such as disabling no-unused-vars, allowing nested ternaries, and controlling arrow function body styles
  • Accessibility rules enforcing alt text, keyboard event handlers, and more
  • Works with CommonJS and ES module files

Installation

Using npm:

npm install --save-dev eslint @eslint/eslintrc @eslint/js eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react typescript-eslint globals

Or with Yarn:

yarn add -D eslint @eslint/eslintrc @eslint/js eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react typescript-eslint globals

Usage

1. ESLint Flat Config (eslint.config.js)

import eslintConfigEverything from 'eslint-config-everything';

export default eslintConfigEverything;

2. Using extends in .eslintrc.js or package.json

module.exports = {
  extends: ['everything'],
};

Or in package.json:

{
  "extends": ["everything"]
}

Note: > eslint-config-everything is authored using ESLint Flat Config. Please ensure you are running ESLint v8.32 or higher, which supports this format.


Customizing Rules

You can extend the everything configuration while overriding specific rules to fit your project needs:

module.exports = {
  extends: ['everything'],
  rules: {
    '@typescript-eslint/await-thenable': 'off',
    // Add or override other rules here
  },
};

Or, if using Flat Config style:

import eslintConfigEverything from 'eslint-config-everything';

export default [
  ...eslintConfigEverything,
  {
    rules: {
      '@typescript-eslint/await-thenable': 'off',
    },
  },
];

Configuration Details

(Include the detailed ESLint configuration here if needed, or link to the source file)


If you want me to add anything else or create example configs, just ask!

Configuration Details

This config covers:

  • TypeScript support with @typescript-eslint recommended rules and strict unused variables handling
  • React plugin with JSX support and rules tuned for modern React (React import not required in JSX)
  • jsx-a11y plugin for accessibility best practices, including alt text and keyboard event enforcement
  • import plugin for enforcing import ordering and grouping to maintain clean, readable imports
  • Turned off some default ESLint rules like no-undef (because TypeScript handles it)
  • Supports both CommonJS and ESM file extensions
  • Custom languageOptions with appropriate parserOptions for latest ECMAScript features and modules

Example of Rules

{
  "rules": {
    "@typescript-eslint/no-unused-vars": [
      "error",
      {
        "args": "all",
        "argsIgnorePattern": "^_",
        "caughtErrors": "all",
        "caughtErrorsIgnorePattern": "^_",
        "varsIgnorePattern": "^_",
        "ignoreRestSiblings": true
      }
    ],
    "react/react-in-jsx-scope": "off",
    "jsx-a11y/click-events-have-key-events": "error",
    "import/order": [
      "error",
      {
        "groups": [
          ["builtin", "external"],
          "internal",
          "parent",
          "sibling",
          "index",
          "object",
          "type"
        ],
        "pathGroups": [
          { "pattern": "react", "group": "external", "position": "before" },
          { "pattern": "@mui/**", "group": "external", "position": "before" },
          {
            "pattern": "@storybook/**",
            "group": "external",
            "position": "after"
          },
          {
            "pattern": "@internal/**",
            "group": "internal",
            "position": "after"
          }
        ],
        "alphabetize": { "order": "asc", "caseInsensitive": true }
      }
    ]
  }
}

Notes

  • This configuration is designed for ESLint Flat Config format (eslint.config.js) — make sure your ESLint version supports it (v8.32+).
  • It disables some default ESLint rules that conflict with TypeScript or React best practices.
  • Adjust tsconfigRootDir in your project if your TypeScript config lives outside the project root.

License

MIT