Project Awesome project awesome

JavaScript > ESLint

Linter.

Collection 4.7k stars GitHub

Configs

Plugins

Practices and Specific ES Features

array-func 95 updated 4d ago

Avoid redundancy when using es2015 array methods and functions.

arrow functions 309 updated 1y ago

ESLint rules to ensure proper arrow function definitions.

boundaries 808 updated 2d ago

Ensures that your architecture boundaries are respected by the elements in your project checking file structure and dependencies.

@eslint-community/eslint-plugin-eslint-comments 91 updated 20d ago

Best practices about ESLint directive comments (/eslint-disable/, etc.). Properly maintained fork of no longer maintained eslint-plugin-eslint-comments.

eslint-plugin-error-cause 19 (archived)

A plugin to preserve original error context when re-throwing exceptions.

eslint-plugin-hexagonal-architecture 315 updated 3y ago

A plugin that helps you to enforce hexagonal architecture best practices.

eslint-plugin-signature-design 1 updated 9mo ago

Forbids functions with too many parameters of the same type, encouraging object-based signatures and preventing primitive obsession.

eslint-plugin-write-good-comments 41 updated 25d ago

Enforce good writing style in comments.

eslint-plugin-exception-handling

Lints unhandled functions that might throw errors.

fp 972 updated 5y ago

ESLint rules for functional programming.

functional 968 updated 10d ago

ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.

mutate 1 updated 9mo ago

Prevent accidental parameter mutations by enforcing explicit mut prefix (JavaScript) or Mut<T> type annotation (TypeScript).

Immutable 911 updated 6y ago

Disable all mutation in JavaScript.

import 5.9k updated 19d ago

Linting of ES2015+ import/export syntax, and prevent issues with misspelling of file paths and import names.

import-x 679 updated 9d ago

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.

Math 15 updated 6d ago

ESLint plugin related to Math object and Number.

new-with-error 26 updated yesterday

Require errors to be thrown using new.

no-argument-spread 3 updated 3y ago

Lints against expressions like Math.max(...args) that can lead to a stack overflow for large arrays.

no-comments 16 updated 10mo ago

Prevents leaking comments into production if bundler is not used and stops developers from commenting out old lines of code.

no-constructor-bind 12 updated 3y ago

Encourages use of class properties by reporting use of this with bind or setting state in constructors.

no-inferred-method-name 26 updated 4y ago

Custom rule for ESLint that checks for inferred method names within object literals.

no-loops 130 updated 4mo ago

It's 2019 and you still use loops?

no-restricted-syntax 5 updated 6mo ago

Show queried syntax's content in messages.

no-use-extend-native 58 updated 10mo ago

Prevent using extended native objects.

Promise 990 updated 5d ago

Best practices when working with promises.

pure 32 updated 9y ago

Enforce pure functions (without side effects).

ReDoSDetector 11 updated 4d ago

ESLint plugin for finding possible ReDoS vulnerabilities.

RegExp 759 updated 4d ago

ESLint plugin for finding regexp mistakes and style guide violations.

sort-keys-fix 101 updated 1y ago

Adds fixer for ESLint sort-keys rule.

this 16 updated 3y ago

Write pure functions, don't allow this.

toplevel 20 updated 1mo ago

An eslint plugin for disallow side effect at module toplevel.

DOM 9 updated 7y ago
Optimize Regex 75 updated 1y ago

Optimize regex literals.

Perf-Standard plugin 24 updated 9y ago
Perf-Standard Config 3 updated 10y ago
no-secrets 163 updated 24d ago

An eslint plugin that detects potential secrets/credentials.

no-unsanitized 241 updated 4d ago

Checks for innerHTML, outerHTML, etc.

pii 12 updated 3y ago

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 updated 5d ago

ESLint rules for Node Security.

xss 71 updated 2y ago

Tries to detect XSS issues in codebase before they end up in production.

editorconfig 17 updated 2y ago

Derive rules from .editorconfig.

filenames 320 updated 1y ago

Ensure consistent filenames for your JavaScript files. No longer maintained and does not work with ESlint 9 at all.

Simple import sort 2.4k updated 5d ago

Easy autofixable import sorting.

perfectionist sorting 2.8k updated 8d ago

Sort objects, imports, TypeScript types, enums, JSX props, etc.

split-and-sort-imports 1 updated 11mo ago

Sorts imports and splits 'multiple' imports into single line imports.

Switch case 18 updated 3d ago

Switch-case-specific linting rules for ESLint.

padding

Allows/disallows padding between statements.

paths 86 updated 9mo ago

Use paths from tsconfig/jsconfig and auto fix relative paths to aliases.

AVA 230 updated 1mo ago

Linting rules for AVA.

Cucumber 8 updated 2y ago

Linting rules for Cucumber.

Cypress 725 updated 7d ago

Linting rules for Cypress.

Jasmine 101 updated 1y ago

Linting rules for Jasmine.

Playwright 377 updated 4d ago

Linting rules for Playwright.

QUnit

Linting rules for QUnit.

TestCafe-Community 4 updated 4mo ago

TestCafe linting rules with env globals (fork from TestCafe globals).

Testing Library

Linting rules for Testing Library.

Tools

es-file-traverse 2 updated 9d ago

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 updated 1y ago

Find built-in ESLint rules you don't have in your custom config.

eslint-index 21 updated 4y ago

CLI for finding and managing rules in ESLint config files.

eslint-interactive 446 updated 29d ago

The CLI tool to fix huge number of ESLint errors.

eslint-multiplexer 7 updated 12d ago

Multiplex eslint results and merge results for common files.

eslint-nibble 885 updated 4mo ago

Ease into ESLint, by fixing one rule at a time.

eslint-plugin-rule-adoption 1 updated 11mo ago

An eslint plugin for incremental rule adoption, when --fix and codemods don't cut it.

eslint-rule-documentation 31 updated 3y ago

Find the url for the documentation of an ESLint rule.

eslint-watch 199 updated 17d ago

Run ESLint with watch mode.

codacy-eslint 16 updated 4d ago

Docker used at Codacy to run ESLint.

esprint 656 updated 26d ago

Run ESLint across multiple threads.

generator-eslint 245 updated 6d ago

Generate ESLint plugin and rules with Yeoman.

editor-info 7 updated 1y ago

Detect whether one is within an editor/IDE and which type, allowing one to tweak ESLint configuration accordingly.

eslint-dashboard 20 updated 4y ago

Interactive ESLint workflow that lives in your terminal.

eslint-remote-tester 130 updated 2d ago

CLI tool for testing given ESlint rules against multiple repositories at once.

eslint-disable-autofix 2 updated 11d ago

Utility to disable autofix for specific ESLint rules.