Awesome Eslint Overview
A list of awesome ESLint plugins, configs, etc.
🏠 Home · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 dustinspecker/awesome-eslint · ⭐ 4.5K · 🏷️ Programming Languages
Awesome ESLint 
A list of awesome ESLint configs, plugins, etc.
If you want to contribute, please read the contribution guidelines.
Contents
- Configs
- Preconfigured Configs with ESLint Set up
- Plugins
- Parsers
- Formatters
- Globals
- Tools
- Developing for ESLint
- Tutorials
- Installation and Setup
Configs
Configs by Well-Known Companies/Organizations
- Airbnb (⭐147k) - Shareable config for Airbnb's style guide (⭐147k).
- Airbnb-babel (⭐3) - Airbnb's ESLint config with Babel Support.
- Alloy (⭐2.7k) - Progressive ESLint config for your React/Vue/TypeScript projects.
- ESLint (⭐26k) - Contains the ESLint configuration used for projects maintained by the ESLint team.
- Facebook - Sharable config for Facebook's style guide.
- Feedzai (⭐8) - Feedzai's shareable config for JavaScript/React projects.
- Shopify (⭐477) - Shareable config for Shopify's style guide (⭐257).
- Wikimedia (⭐31) - Shareable config for Wikimedia's style guide, used by MediaWiki.
Other Prominent Configs (100 stars or so)
- Auto (⭐404) - Automatically configure ESLint based on your project's dependencies.
- Canonical (⭐615) - Shareable config for Canonical style guide (⭐18).
- Standard (⭐2.6k) - Shareable config for JavaScript Standard Style (⭐29k).
- XO (⭐274) - Shareable config for XO (⭐7.8k).
- Antfu Eslint Config (⭐5.1k) - Anthony's ESLint config preset.
Other Configs
- Adjunct (⭐51) - A reasonable collection of plugins to use alongside your main ESLint configuration.
- Ash-Nazg (⭐6) - One config to rule them all!
- Cecilia (⭐7) - ESLint configuration for awesome projects.
- clean-typescript (⭐1) - Enforce classic JavaScript featuress in TypeScript codebase by banning excessive keywords.
- Hardcore (⭐436) - The most strict (but practical) ESLint config out there.
- Problems (⭐68) - Shareable config that only catches actual problems, and doesn't enforce stylistic preferences.
- Supermind (⭐4) - Shareable config for Supermind style.
- Sheriff (⭐156) - Comprehensive and highly opinionated Eslint configuration. Typescript oriented.
Preconfigured Configs with ESLint Set up
- Node.js Standard Style (⭐6) - Node.js core config.
- eslint-config-prettier (⭐5.7k) - Prettier config for ESlint maintained by Prettier team.
- Standard (⭐29k) - JavaScript Standard Style.
- Superlint (⭐5) - JavaScript Supermind Style.
- XO (⭐7.8k) - JavaScript happiness style linter ❤️.
Plugins
Code Quality
- depend (⭐398) - Helps detect dependency tree bloat and redundant polyfills.
- GitHub (⭐314) - Misc. rules from GitHub.
- SonarJS (⭐1.1k) - Rules detecting bugs and suspicious patterns.
- Unicorn (⭐4.5k) - Various awesome ESLint rules.
- @mysticatea/eslint-plugin (⭐26) - Misc. rules.
- @brettz9/eslint-plugin (⭐2) - Misc. rules. of
@mysticatea
without the personal config. - De Morgan (⭐270) - Transforms logical expressions in code to make them easier to understand.
- eslint-plugin-code-complete (⭐1) - A custom ESLint plugin that enforces principles of clean, maintainable software design — inspired by Code Complete.
Compatibility
- Compat (⭐3.1k) - Lint browser compatibility of APIs used (caniuse as an ESLint plugin).
- ecmascript-compat (⭐69) - Disable ECMAScript language features not supported by your browserslist targets.
- es-x (⭐133) - Disable specific ECMAScript language versions or individual features. Properly maintained fork of no longer maintained
eslint-plugin-es
. - es5 (⭐55) - ESLint plugin for ES5 users (forbid ES2015+ usage).
- ie11 (⭐15) - Detect unsupported ES6 features in IE11.
CSS in JS
- CSS-modules (⭐152) - Lint undefined or unused rules for css modules.
- Emotion (⭐18k) - ESLint rules for emotion.
- Styled Components
- Better Styled Components (⭐66) - Auto fixable ESlint's rules for styled components.
- styled-components-a11y (⭐150) - A11y for Styled Components.
- vanilla-extract (⭐20) - An ESLint plugin for enforcing CSS property ordering in vanilla-extract CSS (⭐9.9k) styles.
Deprecation
- deprecate (⭐81) - Mark functions or modules as deprecated and get lint messages when they are used.
- disable (⭐56) - Disable specified plugins using file path patterns and inline comments.
Embedded
- HTML (⭐440) - Linting for JavaScript inside of HTML
<script>
tags. - Markdown (⭐447) - Linting for JavaScript inside of Markdown.
Frameworks
- Angular (⭐1.7k) - Linting rules for Angular (v2+).
- AngularJS (⭐618) - Linting rules to adhere to the John Papa's AngularJS Styleguide (⭐24k).
- Astro (⭐363) - Plugin for Astro components.
- Backbone (⭐95) - Linting rules for Backbone.
- Ember (⭐262) - Linting rules for Ember.
- Hapi (⭐21) - Linting rules for hapi.
- Meteor (⭐45k) - Meteor specific linting rules for ESLint.
- React
- JSX a11y (⭐3.5k) - Accessibility rules on JSX elements.
- React (⭐9.2k) - Linting rules for React and JSX.
- React Hooks (⭐235k) - Linting rules for React Hooks.
- React Native (⭐740) - React Native specific linting rules.
- React-Redux (⭐83) - React-Redux specific linting rules.
- Solid (⭐241) - Linting rules for Solid and JSX.
- Svelte (⭐335) - Linting rules for Svelte v3 Components.
- Vue
- VueJS (⭐4.5k) - Plugin for VueJS.
- VueJS Scoped CSS (⭐107) - Plugin for Scoped CSS in VueJS.
Languages and Environments
- Babel (⭐44k) - Adds replacements for built-in rules to include Babel features.
- eslint-plugin-eslint-plugin (⭐209) - An ESLint plugin for linting ESLint plugins.
- Flow
- Flow (⭐1.1k) - Flow type linting rules.
- Flow Errors (⭐403) - Run Flow as an ESLint plugin.
- HTML (⭐197) - ESLint plugin for HTML.
- JSON
- JSON (⭐212) - Lint your JSON files.
- JSON, package.json (⭐41) - Lint, format, and auto-fix your JSON files. Sort your
package.json
. - JSON with Comments (⭐214) - ESLint plugin for JSON, JSONC and JSON5.
- JSON Schema (⭐76) - Validates data defined in JavaScript, JSON, YAML and TOML using JSON Schema Validator.
- MDX (⭐285) - ESLint Parser/Plugin for MDX.
- N (⭐280) - Additional ESLint's rules for Node.js. Properly maintained fork of no longer maintained
eslint-plugin-node
. - SQL (⭐105) - SQL linting rules for ESLint.
- TOML (⭐28) - ESLint plugin for TOML.
- TypeScript (⭐16k) - Linting rules for TypeScript.
- YAML (⭐139) - ESLint plugin for YAML.
Libraries
- GraphQL
- dotansimha/graphql-eslint (⭐826) - Validates, prettifies and checks your GraphQL operations and GraphQL schema for best-practices.
- apollostack/eslint-plugin-graphql (⭐1.2k) - Check your GraphQL query strings against a schema.
- TypeGraphQL (⭐19) - Linting rules for TypeGraphQL, targeted at finding common mistakes.
- jQuery (⭐32) - Linting rules for jQuery, including versioned configs for deprecated features.
- JSDoc (⭐1.1k) - Linting rules for JSDoc comments (including the JavaScript within
@example
). - Lodash
- Lodash (⭐277) - Lodash specific linting rules.
- Lodash/fp (⭐151) - Lodash/fp specific linting rules.
- Lodash template (⭐17) - Plugin for Lodash template/Underscore template.
- Microtemplates (⭐4) (Used in Lodash and Underscore.js)
- Mongodb (⭐20) - Mongodb native Node.js driver linting rules.
- Ramda (⭐117) - Ramda specific linting rules.
- RequireJS (⭐29) - Linting rules for RequireJS.
- Tailwind CSS (⭐1.8k) - Linting rules for Tailwind CSS classnames.
Misc
- Diff (⭐195) - Run ESLint on your changed lines only. Also supports CI!
- Misc (⭐10) - Miscellaneous rules including rules for creating custom checks and wrapping (modifying) third-party rules.
- Notice (⭐24) - An eslint rule that checks the top of files and fixes them too!
- Only-Error (⭐17) - Convert all rules to errors.
- Only-Warn (⭐173) - Convert all rules to warnings.
- PutOut (⭐750) - an ESLint plugin integrates putout (⭐750) linter into ESLint.
- TypeLint (⭐174) - Introduces types, based on existing schemas (Swagger, Redux) and linting access to object properties, preventing
undefined
errors. - Woke (⭐36) - Helps catch insensitive words, promoting an inclusive codebase.
Practices and Specific ES Features
- array-func (⭐96) - Avoid redundancy when using es2015 array methods and functions.
- arrow functions (⭐308) - ESLint rules to ensure proper arrow function definitions.
- boundaries (⭐644) - Ensures that your architecture boundaries are respected by the elements in your project checking file structure and dependencies.
- @eslint-community/eslint-plugin-eslint-comments (⭐69) - Best practices about ESLint directive comments (
/*eslint-disable*/
, etc.). Properly maintained fork of no longer maintainedeslint-plugin-eslint-comments
. - eslint-plugin-hexagonal-architecture (⭐302) - A plugin that helps you to enforce hexagonal architecture best practices.
- eslint-plugin-write-good-comments (⭐39) - Enforce good writing style in comments.
- eslint-plugin-exception-handling (⭐43) - Lints unhandled functions that might throw errors.
- fp (⭐972) - ESLint rules for functional programming.
- functional (⭐910) - ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.
- Immutable (⭐913) - Disable all mutation in JavaScript.
- import (⭐5.7k) - Linting of ES2015+ import/export syntax, and prevent issues with misspelling of file paths and import names.
- import-x (⭐529) - Linting of ES2015+ import/export syntax, and prevent issues with misspelling of file paths and import names. Lightweight fork of
eslint-plugin-import
, but which breaks backwards compatibility. - new-with-error (⭐26) - Require errors to be thrown using
new
.
- no-argument-spread (⭐3) - Lints against expressions like
Math.max(...args)
that can lead to a stack overflow for large arrays. - no-comments (⭐13) - Prevents leaking comments into production if bundler is not used and stops developers from commenting out old lines of code.
- no-constructor-bind (⭐12) - Encourages use of class properties by reporting use of
this
withbind
or setting state in constructors. - no-inferred-method-name (⭐27) - Custom rule for ESLint that checks for inferred method names within object literals.
- no-loops (⭐130) - It's 2019 and you still use loops?
- no-restricted-syntax (⭐5) - Show queried syntax's content in messages.
- no-use-extend-native (⭐56) - Prevent using extended native objects.
- Promise (⭐964) - Best practices when working with promises.
- pure (⭐31) - Enforce pure functions (without side effects).
- ReDoS - ESLint plugin for finding possible ReDoS vulnerabilities.
- ReDoSDetector (⭐12) - ESLint plugin for finding possible ReDoS vulnerabilities.
- RegExp (⭐724) - ESLint plugin for finding regexp mistakes and style guide violations.
- sort-keys-fix (⭐99) - Adds fixer for ESLint
sort-keys
rule. - this (⭐16) - Write pure functions, don't allow
this
. - toplevel (⭐19) - An eslint plugin for disallow side effect at module toplevel.
Performance
- DOM (⭐9)
- Optimize Regex (⭐76) - Optimize regex literals.
- Perf-Standard plugin (⭐23) and Config (⭐3)
Security
- no-secrets (⭐149) - An eslint plugin that detects potential secrets/credentials.
- no-unsanitized (⭐236) - Checks for
innerHTML
,outerHTML
, etc. - pii (⭐9) - Checks and enforces PII Compliance of the code. i.e. no email address, birth date, IP address or phone number in comments or string literals.
- Security (⭐2.3k) - ESLint rules for Node Security.
- xss (⭐67) - Tries to detect XSS issues in codebase before they end up in production.
Style
- ESLint Stylistic - Formatting and stylistic ESLint core rules moved to this project and are maintained by the community.
- const case - Enforce capitalization of constant primitive literals.
- editorconfig (⭐16) - Derive rules from
.editorconfig
. - filenames (⭐321) - Ensure consistent filenames for your JavaScript files. No longer maintained and does not work with ESlint 9 at all.
- Simple import sort (⭐2.3k) - Easy autofixable import sorting.
- perfectionist sorting (⭐2.5k) - Sort objects, imports, TypeScript types, enums, JSX props, etc.
- split-and-sort-imports (⭐0) - Sorts imports and splits 'multiple' imports into single line imports.
- Switch case (⭐18) - Switch-case-specific linting rules for ESLint.
- padding (⭐6) - Allows/disallows padding between statements.
- paths (⭐77) - Use paths from tsconfig/jsconfig and auto fix relative paths to aliases.
- @gitbutler/no-relative-imports - Use paths from tsconfig and auto fix relative paths to aliases. Observes tsconfig inheritance.
Testing Tools
- AVA (⭐230) - Linting rules for AVA.
- Chai
- Cucumber (⭐8) - Linting rules for Cucumber.
- Cypress (⭐718) - Linting rules for Cypress.
- Jasmine (⭐97) - Linting rules for Jasmine.
- Jest
- Enforcing practices (⭐1.2k) - Linting rules for Jest.
- Enforcing consistent formatting (⭐154) - Formatting rules for Jest.
- Jest-async - Async linting rule for Jest.
- Jest-DOM (⭐368) - Linting rules for Jest-DOM.
- Mocha
- Enforcing practices (⭐285) - Linting rules for Mocha.
- Enforcing manageability (⭐13)
- Playwright (⭐315) - Linting rules for Playwright.
- QUnit (⭐30) - Linting rules for QUnit.
- TestCafe-Community (⭐4) - TestCafe linting rules with env globals (fork from TestCafe globals (⭐15)).
- Testing Library (⭐1k) - Linting rules for Testing Library.
Parsers
- babel-eslint-parser (⭐44k) - Allows you to lint ALL valid Babel code with the fantastic ESLint.
- TypeScript (⭐16k) - A TypeScript parser that produces output compatible with ESLint.
- BrightScript (⭐47) - BrightScript plugin for Roku development. Includes Parser and Rules.
- GraphQL (⭐826) - Parser for the GraphQL AST. Includes parser, plugin, processor (for non-graphql files) and rules.
Formatters
- html (⭐37) - A enhanced ESLint formatter.
- badger (⭐6) - Make SVG-based badges summarizing ESLint results (e.g., for use on a README).
- git-log (⭐41) - ESLint Formatter featuring Git Author, Date, and Hash.
- github (⭐107) - See ESLint errors and warnings directly in pull requests.
- gitlab - Output ESLint results in the GitLab code quality results.
- mo (⭐131) - Good-lookin' ESLint formatter and also for delightful reading experience.
- SARIF - Generate a results in a SARIF format so it can be imported into tools like GitHub Advanced Security.
- summary-chart (⭐12) - Format ESLint output into a bar chart.
Globals
- confusing-browser-globals (⭐103k) - A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window. qualifier.
- ES and browser globals (⭐472) (originally from ESLint)
- chai globals (⭐2)
- TestCafe globals (⭐15) -
fixture
&test
globals for TestCafe.
Tools
- es-file-traverse (⭐2) - Obtain a list of only those files which are in use based on imports and/or requires from an entry file or files; list passable to ESLint. Intended esp. for linting 3rd party dependencies.
- eslint-find-rules (⭐212) - Find built-in ESLint rules you don't have in your custom config.
- eslint-index (⭐20) - CLI for finding and managing rules in ESLint config files.
- eslint-interactive (⭐401) - The CLI tool to fix huge number of ESLint errors.
- eslint-multiplexer (⭐7) - Multiplex eslint results and merge results for common files.
- eslint-nibble (⭐826) - Ease into ESLint, by fixing one rule at a time.
- eslint-plugin-rule-adoption (⭐1) - An eslint plugin for incremental rule adoption, when
--fix
and codemods don't cut it. - eslint-rule-documentation (⭐30) - Find the url for the documentation of an ESLint rule.
- eslint-watch (⭐197) - Run ESLint with watch mode.
- codacy-eslint (⭐16) - Docker used at Codacy to run ESLint.
- esprint (⭐662) - Run ESLint across multiple threads.
- generator-eslint (⭐236) - Generate ESLint plugin and rules with Yeoman.
- editor-info (⭐6) - Detect whether one is within an editor/IDE and which type, allowing one to tweak ESLint configuration accordingly.
- eslint-dashboard (⭐19) - Interactive ESLint workflow that lives in your terminal.
- eslint-remote-tester (⭐132) - CLI tool for testing given ESlint rules against multiple repositories at once.
Developing for ESLint
- eslint-doc-generator (⭐97) - Generate documentation for your ESLint plugin including a rules table for your readme and header for your rule docs.
- eslint-docgen (⭐10) - Automatically generate ESLint plugin documentation from rule metadata and test cases.
Tutorials
- Creating an ESLint Plugin - Article walking through the creation of an ESLint rule and plugin.
- Lint Like It's 2015 - Article walking through the benefits of using ESLint.
- Writing a rule to spot undeclared props hiding in plain sight - Article about creating rules that require scope analysis.
- Dear Old ESLint - Quick intro article on ESLint.
Installation and Setup
- Lintier (⭐27) - CLI to quickly scaffold an ESLint & Prettier setup in a TypeScript project.