Highlights
- Rules can now access
context.getCwd()
to get the current working directory - The use-isnan rule has a new
enforceForIndexOf
option - The no-param-reassign rule has a new
ignorePropertyModificationsForRegex
option - The no-unsafe-negation rule has a new
enforceForOrderingRelations
option - The no-extra-parens has a new
enforceForNewInMemberExpressions
option
In addition, we have improved the error report locations for a number of rules with this release.
Features
Enhancements
39dfe08
Update: false positives in function-call-argument-newline (fixes #12123) (#12280) (Scott O’Hara)4d84210
Update: improve report location for no-trailing-spaces (fixes #12315) (#12477) (Milos Djermanovic)c6a7745
Update: no-trailing-spaces false negatives after comments (fixes #12479) (#12480) (Milos Djermanovic)c6a9a3b
Update: Add enforceForIndexOf option to use-isnan (fixes #12207) (#12379) (Milos Djermanovic)364877b
Update: measure plugin loading time and output in debug message (#12395) (Victor Homyakov)aac3be4
Update: Add ignored prop regex no-param-reassign (#11275) (Luke Bennett)7dffe48
Update: Enable function string option in comma-dangle (fixes #12058) (#12462) (YeonJuan)7c8bbe0
Update: enforceForOrderingRelations no-unsafe-negation (fixes #12163) (#12414) (Sam Rae)349ed67
Update: improve report location for no-mixed-operators (#12328) (Chiawen Chen)6e7c18d
Update: enforceForNewInMemberExpressions no-extra-parens (fixes #12428) (#12436) (Milos Djermanovic)2d6e345
Update: make isSpaceBetweenTokens() ignore newline in comments (#12407) (YeonJuan)84f71de
Update: remove default overrides in keyword-spacing (fixes #12369) (#12411) (YeonJuan)18a0b0e
Update: improve report location for no-space-in-parens (#12364) (Chiawen Chen)d61c8a5
Update: improve report location for no-multi-spaces (#12329) (Chiawen Chen)b962775
Update: no-self-assign should detect member expression with this (#12279) (Tibor Blenessy)
Bug Fixes
0bffe95
Fix: no-misleading-character-class crash on invalid regex (fixes #12169) (#12347) (Milos Djermanovic)1744fab
Fix: operator-assignment removes and duplicates comments (#12485) (Milos Djermanovic)52ca11a
Fix: operator-assignment invalid autofix with adjacent tokens (#12483) (Milos Djermanovic)0f6d0dc
Fix: CLIEngine#addPlugin reset lastConfigArrays (fixes #12425) (#12468) (Toru Nagashima)49faefb
Fix: no-obj-calls false positive (fixes #12437) (#12467) (Toru Nagashima)b3dbd96
Fix: problematic installation issue (fixes #11018) (#12309) (Toru Nagashima)89e8aaf
Fix: improve report location for no-tabs (#12471) (Milos Djermanovic)a102eaa
Fix: prefer-numeric-literals invalid autofix with adjacent tokens (#12387) (Milos Djermanovic)51fbbd7
Fix: array-bracket-newline consistent error with comments (fixes #12416) (#12441) (Milos Djermanovic)e657d4c
Fix: report full dot location in dot-location (#12452) (Milos Djermanovic)
Documentation
8233873
Docs: Add note about Node.js requiring SSL support (fixes #11413) (#12475) (Nicholas C. Zakas)e15e1f9
Docs: fix doc for no-unneeded-ternary rule (fixes #12098) (#12410) (Sam Rae)02977f2
Docs: Clarifyeslint:recommended
semver policy (#12429) (Kevin Partington)97045ae
Docs: Fixes object type forrules
in “Use a Plugin” (#12409) (Daisy Develops)24ca088
Docs: Fix typo in v6 migration guide (#12412) (Benjamim Sonntag)84467c0
Docs: fix wrong max-depth example (fixes #11991) (#12358) (Gabriel R Sezefredo)3642342
Docs: Fix minor formatting/grammar errors (#12371) (cherryblossom000)c47fa0d
Docs: Fix missing word in sentence (#12361) (Dan Boulet)
Dependency Upgrades
Chores
923a8cb
Chore: Fix lint failure in JSDoc comment (#12489) (Brandon Mills)e5382d6
Chore: Remove unused parameter in dot-location (#12464) (Milos Djermanovic)61749c9
Chore: Provide debug log for parser errors (#12474) (Brad Zacher)fb633b2
Chore: Add a script for testing with more control (#12444) (Eric Wang)b094008
Chore: update version parameter name (#12402) (Toru Nagashima)e5637ba
Chore: enable jsdoc/require-description (#12365) (Kai Cataldo)7ffb22f
Chore: Clean up inline directive parsing (#12375) (Jordan Eldredge)8108f49
Chore: enable additional eslint-plugin-jsdoc rules (#12336) (Kai Cataldo)b718d2e
Chore: update issue template with --eslint-fix flag (#12352) (James George)