eslint
10.15.0 · 13 Nov 2026MIT217.1M / weekRepositoryHomepagenpmAtom feed
2.13.1 is the newest release of 2.x.
In short
4 new20 fixed9 changed18 internal
Release note
Update: Proposed no-magic-numbers option: ignoreJSXNumbers (fixes #5348) (Brandon Beeks)
Extends chain (fixes #5411) (Toru Nagashima)
Update: Replace getLast() with lodash.last() (fixes #5456) (Jordan Eldredge)
Crash when SourceCode object was reused (fixes #5007) (Toru Nagashima)
New: newline-before-return rule (fixes #5009) (Kai Cataldo)
Check space after anonymous generator star (fixes #5435) (alberto)
no-undeffalse positive at new.target (fixes #5420) (Toru Nagashima)Update: Add ES7 support (fixes #5401) (Brandon Mills)
Update: Support classes in
padded-blocks(fixes #5092) (alberto)getFormatterthrows an error when called as static (fixes #5378) (cowchimp)Prevent crash from swallowing console.log (fixes #5381) (Ian VanSchooten)
Remove tests which have invalid syntax (fixes #5405) (Toru Nagashima)
no-useless-constructorrule crashes sometimes (fixes #5290) (Burak Yigit Kaya)Update: Allow string severity in config (fixes #3626) (Nicholas C. Zakas)
Update: Exclude ES5 constructors from consistent-return (fixes #5379) (Kevin Locke)
Location info in
dot-notationrule (fixes #5397) (Gyandeep Singh)Update: Support switch statements in padded-blocks (fixes #5056) (alberto)
Allow irregular whitespace in comments (fixes #5368) (Christophe Porteneuve)
New: no-restricted-globals rule implementation (fixes #3966) (Benoît Zugmeyer)
constructor-superfalse positive after a loop (fixes #5394) (Toru Nagashima)Indent rule doesn't handle constructor instantiation (fixes #5384) (Nate Cavanaugh)
Avoid magic numbers in rule options (fixes #4182) (Brandon Beeks)
Add tests to cover default magic number tests (fixes #5385) (Brandon Beeks)
.eslintignore paths should be absolute (fixes #5362) (alberto)
Update: Better error message for plugins (refs #5221) (Nicholas C. Zakas)
Update: Improve error message for rule-tester (fixes #5369) (Jeroen Engels)
no-self-assignfalse positive at shorthand (fixes #5371) (Toru Nagashima)Update: no-invalid-regexp allows custom flags (fixes #5249) (Afnan Fahim)
Support for dash and slash in
valid-jsdoc(fixes #1598) (Gyandeep Singh)Fix:
newline-per-chained-callshould only warn on methods (fixes #5289) (Burak Yigit Kaya)Update: prefer-const; change modified to reassigned (fixes #5350) (Michiel de Bruijne)
Indent check for else keyword with Stroustrup style (fixes #5218) (Gyandeep Singh)
Cleanup temp files from tests (fixes #5338) (Nick)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.