Awesome Eslint Overview
A list of awesome ESLint plugins, configs, etc.
🏠 Home · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 dustinspecker/awesome-eslint · ⭐ 4.2K · 🏷️ 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 (⭐143k) - Shareable config for Airbnb's style guide (⭐143k).
- Airbnb-babel (⭐3) - Airbnb's ESLint config with Babel Support.
- Airbnb-typescript (⭐1k) - Airbnb's ESLint config with TypeScript support.
- Alloy (⭐2.6k) - Progressive ESLint config for your React/Vue/TypeScript projects.
- ESLint (⭐25k) - Contains the ESLint configuration used for projects maintained by the ESLint team.
- Facebook - Sharable config for Facebook's style guide.
- Feedzai (⭐9) - Feedzai's shareable config for JavaScript/React projects.
- React App (⭐102k) - Sharable config for React projects.
- Shopify (⭐461) - Shareable config for Shopify's style guide (⭐253).
- Vercel (⭐1.2k) - Vercel Engineering's composable eslint configuration used in all their codebases.
- Wikimedia (⭐28) - Shareable config for Wikimedia's style guide, used by MediaWiki.
Other Prominent Configs (100 stars or so)
- Auto (⭐396) - Automatically configure ESLint based on your project's dependencies.
- Canonical (⭐576) - Shareable config for Canonical style guide (⭐18).
- Standard (⭐2.6k) - Shareable config for JavaScript Standard Style (⭐29k).
- XO (⭐266) - Shareable config for XO (⭐7.6k).
- Antfu Eslint Config (⭐3.4k) - Anthony's ESLint config preset.
Other Configs
- Adjunct (⭐50) - A reasonable collection of plugins to use alongside your main ESLint configuration.
- Ash-Nazg (⭐6) - One config to rule them all!
- Cecilia (⭐6) - ESLint configuration for awesome projects.
- clean-typescript (⭐1) - Enforce classic JavaScript featuress in TypeScript codebase by banning excessive keywords.
- ES (⭐28) - Shareable config for very strict code.
- Hardcore (⭐401) - The most strict (but practical) ESLint config out there.
- Problems (⭐67) - Shareable config that only catches actual problems, and doesn't enforce stylistic preferences.
- Supermind (⭐4) - Shareable config for Supermind style.
- Sheriff (⭐97) - 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.3k) - Prettier config for ESlint maintained by Prettier team.
- Standard (⭐29k) - JavaScript Standard Style.
- Superlint (⭐5) - JavaScript Supermind Style.
- XO (⭐7.6k) - JavaScript happiness style linter ❤️.
- Healthier (⭐84) - Code style agnostic version of Standard, perfect companion to Prettier.
Plugins
Code Quality
- depend (⭐122) - Helps detect dependency tree bloat and redundant polyfills.
- GitHub (⭐285) - Misc. rules from GitHub.
- SonarJS (⭐1.2k) - Rules detecting bugs and suspicious patterns.
- Unicorn (⭐4k) - Various awesome ESLint rules.
- @mysticatea/eslint-plugin (⭐25) - Misc. rules.
- @brettz9/eslint-plugin (⭐2) - Misc. rules. of
@mysticatea
without the personal config.
Compatibility
- Compat (⭐3k) - Lint browser compatibility of APIs used (caniuse as an ESLint plugin).
- ecmascript-compat (⭐64) - Disable ECMAScript language features not supported by your browserslist targets.
- es-x (⭐109) - Disable specific ECMAScript language versions or individual features. Properly maintained fork of no longer maintained
eslint-plugin-es
. - es5 (⭐54) - ESLint plugin for ES5 users (forbid ES2015+ usage).
- ie11 (⭐14) - Detect unsupported ES6 features in IE11.
CSS in JS
- CSS-modules (⭐153) - Lint undefined or unused rules for css modules.
- Emotion (⭐17k) - ESLint rules for emotion.
- Styled Components
- Better Styled Components (⭐64) - Auto fixable ESlint's rules for styled components.
- styled-components-a11y (⭐141) - A11y for Styled Components.
Deprecation
- deprecate (⭐81) - Mark functions or modules as deprecated and get lint messages when they are used.
- deprecation (⭐308) - Identifies use of
jsdoc
@deprecated
functions. - disable (⭐57) - Disable specified plugins using file path patterns and inline comments.
Embedded
- HTML (⭐427) - Linting for JavaScript inside of HTML
<script>
tags. - Markdown (⭐368) - Linting for JavaScript inside of Markdown.
Frameworks
- Angular (⭐1.6k) - Linting rules for Angular (v2+).
- AngularJS (⭐618) - Linting rules to adhere to the John Papa's AngularJS Styleguide (⭐24k).
- Astro (⭐287) - Plugin for Astro components.
- Backbone (⭐95) - Linting rules for Backbone.
- Custom Elements (⭐57) - Rules by GitHub for Custom Elements.
- Ember (⭐257) - Linting rules for Ember.
- Hapi (⭐21) - Linting rules for hapi.
- Meteor (⭐44k) - Meteor specific linting rules for ESLint.
- React
- JSX a11y (⭐21) - Accessibility rules on JSX elements.
- React (⭐8.9k) - Linting rules for React and JSX.
- React Hooks (⭐225k) - Linting rules for React Hooks.
- React Native (⭐718) - React Native specific linting rules.
- React-Redux (⭐83) - React-Redux specific linting rules.
- Solid (⭐206) - Linting rules for Solid and JSX.
- Svelte (⭐277) - Linting rules for Svelte v3 Components.
- Vue
- VueJS (⭐4.4k) - Plugin for VueJS.
- VueJS Scoped CSS (⭐96) - Plugin for Scoped CSS in VueJS.
Languages and Environments
- AssemblyScript - Rules for enforcing restrictions on TypeScript toward AssemblyScript compliance.
- Babel (⭐43k) - Adds replacements for built-in rules to include Babel features.
- Coffee (⭐11) - Enables linting CoffeeScript files with, with optional linting rules from the Coffeelint library.
- eslint-plugin-eslint-plugin (⭐189) - An ESLint plugin for linting ESLint plugins.
- Flow
- Flow (⭐1.1k) - Flow type linting rules.
- Flow Errors (⭐402) - Run Flow as an ESLint plugin.
- HTML (⭐147) - ESLint plugin for HTML.
- JSON
- JSON (⭐196) - Lint your JSON files.
- JSON, package.json (⭐41) - Lint, format, and auto-fix your JSON files. Sort your
package.json
. - JSON with Comments (⭐180) - ESLint plugin for JSON, JSONC and JSON5.
- JSON Schema (⭐67) - Validates data defined in JavaScript, JSON, YAML and TOML using JSON Schema Validator.
- MDX (⭐258) - ESLint Parser/Plugin for MDX.
- N (⭐195) - Additional ESLint's rules for Node.js. Properly maintained fork of no longer maintained
eslint-plugin-node
. - SQL (⭐91) - SQL linting rules for ESLint.
- TOML (⭐25) - ESLint plugin for TOML.
- TypeScript (⭐15k) - Linting rules for TypeScript.
- YAML (⭐108) - ESLint plugin for YAML.
Libraries
- GraphQL
- dotansimha/graphql-eslint (⭐779) - 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 (⭐17) - Linting rules for TypeGraphQL, targeted at finding common mistakes.
- jQuery (⭐31) - 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 (⭐273) - Lodash specific linting rules.
- Lodash/fp (⭐150) - Lodash/fp specific linting rules.
- Lodash template (⭐17) - Plugin for Lodash template/Underscore template.
- Microtemplates (⭐4) (Used in Lodash and Underscore.js)
- Mongodb (⭐17) - Mongodb native Node.js driver linting rules.
- Ramda (⭐118) - Ramda specific linting rules.
- RequireJS (⭐29) - Linting rules for RequireJS.
- Tailwind CSS (⭐1.4k) - Linting rules for Tailwind CSS classnames.
Misc
- Diff (⭐164) - Run ESLint on your changed lines only. Also supports CI!
- Misc (⭐8) - Miscellaneous rules including rules for creating custom checks and wrapping (modifying) third-party rules.
- Notice (⭐26) - An eslint rule that checks the top of files and fixes them too!
- Only-Error (⭐15) - Convert all rules to errors.
- Only-Warn (⭐155) - Convert all rules to warnings.
- PutOut (⭐680) - an ESLint plugin integrates putout (⭐680) linter into ESLint.
- TypeLint (⭐175) - Introduces types, based on existing schemas (Swagger, Redux) and linting access to object properties, preventing
undefined
errors. - Woke (⭐31) - Helps catch insensitive words, promoting an inclusive codebase.
Practices and Specific ES Features
- array-func (⭐94) - Avoid redundancy when using es2015 array methods and functions.
- arrow functions (⭐305) - ESLint rules to ensure proper arrow function definitions.
- boundaries (⭐474) - Ensures that your architecture boundaries are respected by the elements in your project checking file structure and dependencies.
- @eslint-community/eslint-plugin-eslint-comments (⭐44) - Best practices about ESLint directive comments (
/*eslint-disable*/
, etc.). Properly maintained fork of no longer maintainedeslint-plugin-eslint-comments
. - eslint-plugin-hexagonal-architecture (⭐283) - A plugin that helps you to enforce hexagonal architecture best practices.
- eslint-plugin-write-good-comments (⭐32) - Enforce good writing style in comments.
- eslint-plugin-exception-handling (⭐14) - Lints unhandled functions that might throw errors.
- fp (⭐969) - ESLint rules for functional programming.
- functional (⭐754) - ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.
- Immutable (⭐912) - Disable all mutation in JavaScript.
- import (⭐5.4k) - Linting of ES2015+ import/export syntax, and prevent issues with misspelling of file paths and import names. Still does not work with ESlint 9 and does not support flat configs.
- import-x (⭐243) - Linting of ES2015+ import/export syntax, and prevent issues with misspelling of file paths and import names. Properly maintained lightweight fork of
eslint-plugin-import
with the proper support of latest ESlint. - new-with-error (⭐25) - 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 (⭐11) - 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 (⭐123) - It's 2019 and you still use loops?
- no-restricted-syntax (⭐4) - Show queried syntax's content in messages.
- no-use-extend-native (⭐56) - Prevent using extended native objects.
- Promise (⭐909) - Best practices when working with promises.
- pure (⭐29) - Enforce pure functions (without side effects).
- ReDoS - ESLint plugin for finding possible ReDoS vulnerabilities.
- ReDoSDetector (⭐4) - ESLint plugin for finding possible ReDoS vulnerabilities.
- RegExp (⭐676) - ESLint plugin for finding regexp mistakes and style guide violations.
- sort-keys-fix (⭐95) - 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 (⭐74) - Optimize regex literals.
- Perf-Standard plugin (⭐22) and Config (⭐3)
Security
- no-secrets (⭐127) - An eslint plugin that detects potential secrets/credentials.
- no-unsanitized (⭐223) - Checks for
innerHTML
,outerHTML
, etc. - pii (⭐8) - 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.
- ScanJS config (⭐88) and plugin (⭐28) - Security-related rules.
- Security (⭐2.2k) - 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 (⭐13) - Derive rules from
.editorconfig
. - filenames (⭐310) - Ensure consistent filenames for your JavaScript files. No longer maintained and does not work with ESlint 9 at all.
- Simple import sort (⭐2k) - Easy autofixable import sorting.
- perfectionist sorting (⭐1.7k) - Sort objects, imports, TypeScript types, enums, JSX props, etc.
- Switch case (⭐17) - Switch-case-specific linting rules for ESLint.
- padding (⭐4) - Allows/disallows padding between statements.
- paths (⭐43) - Use paths from tsconfig/jsconfig and auto fix relative paths to aliases.
Testing Tools
- AVA (⭐227) - Linting rules for AVA.
- Chai
- Cucumber (⭐7) - Linting rules for Cucumber.
- Cypress (⭐695) - Linting rules for Cypress.
- Jasmine (⭐95) - Linting rules for Jasmine.
- Jest
- Enforcing practices (⭐1.1k) - Linting rules for Jest.
- Enforcing consistent formatting (⭐152) - Formatting rules for Jest.
- Jest-async - Async linting rule for Jest.
- Jest-DOM (⭐354) - Linting rules for Jest-DOM.
- Mocha
- Enforcing practices (⭐276) - Linting rules for Mocha.
- Enforcing manageability (⭐13)
- Playwright (⭐244) - 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 (⭐971) - Linting rules for Testing Library.
Parsers
- babel-eslint-parser (⭐43k) - Allows you to lint ALL valid Babel code with the fantastic ESLint.
- TypeScript (⭐15k) - A TypeScript parser that produces output compatible with ESLint.
- BrightScript (⭐43) - BrightScript plugin for Roku development. Includes Parser and Rules.
- GraphQL (⭐779) - Parser for the GraphQL AST. Includes parser, plugin, processor (for non-graphql files) and rules.
Formatters
- html (⭐33) - A enhanced ESLint formatter.
- badger (⭐6) - Make SVG-based badges summarizing ESLint results (e.g., for use on a README).
- git-log (⭐42) - ESLint Formatter featuring Git Author, Date, and Hash.
- github (⭐100) - See ESLint errors and warnings directly in pull requests.
- gitlab - Output ESLint results in the GitLab code quality results.
- mo (⭐121) - 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 (⭐102k) - 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 (⭐364) (originally from ESLint)
- chai globals (⭐2)
- TestCafe globals (⭐15) -
fixture
&test
globals for TestCafe.
Tools
- eslint-define-config (⭐346) - Provide a
defineConfig
function for.eslintrc.js
files. - 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 (⭐201) - 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 (⭐339) - The CLI tool to fix huge number of ESLint errors.
- eslint-multiplexer (⭐7) - Multiplex eslint results and merge results for common files.
- eslint-nibble (⭐760) - Ease into ESLint, by fixing one rule at a time.
- eslint-plugin-rule-adoption (⭐0) - 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 (⭐193) - Run ESLint with watch mode.
- codacy-eslint (⭐15) - Docker used at Codacy to run ESLint.
- esprint (⭐658) - Run ESLint across multiple threads.
- generator-eslint (⭐228) - 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 (⭐118) - CLI tool for testing given ESlint rules against multiple repositories at once.
Developing for ESLint
- eslint-doc-generator (⭐91) - 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.
- Linting JavaScript with ESLint - Video showing ESLint setup and basics.
- Linting React JSX with ESLint (in ES6) - Video showing how to use React and JSX with ESLint.
- Plugin Module with Mixins - Article on how to write a plugin as a node module containing modular mixin configuration.
- Writing a rule to spot undeclared props hiding in plain sight - Article about creating rules that require scope analysis.
Installation and Setup
- Lintier (⭐19) - CLI to quickly scaffold an ESLint & Prettier setup in a TypeScript project.