
Highlights
- Rules can now access context.getCwd()to get the current working directory
- The use-isnan rule has a new enforceForIndexOfoption
- The no-param-reassign rule has a new ignorePropertyModificationsForRegexoption
- The no-unsafe-negation rule has a new enforceForOrderingRelationsoption
- The no-extra-parens has a new enforceForNewInMemberExpressionsoption
In addition, we have improved the error report locations for a number of rules with this release.
Features
Enhancements
- 39dfe08Update: false positives in function-call-argument-newline (fixes #12123) (#12280) (Scott O’Hara)
- 4d84210Update: improve report location for no-trailing-spaces (fixes #12315) (#12477) (Milos Djermanovic)
- c6a7745Update: no-trailing-spaces false negatives after comments (fixes #12479) (#12480) (Milos Djermanovic)
- c6a9a3bUpdate: Add enforceForIndexOf option to use-isnan (fixes #12207) (#12379) (Milos Djermanovic)
- 364877bUpdate: measure plugin loading time and output in debug message (#12395) (Victor Homyakov)
- aac3be4Update: Add ignored prop regex no-param-reassign (#11275) (Luke Bennett)
- 7dffe48Update: Enable function string option in comma-dangle (fixes #12058) (#12462) (YeonJuan)
- 7c8bbe0Update: enforceForOrderingRelations no-unsafe-negation (fixes #12163) (#12414) (Sam Rae)
- 349ed67Update: improve report location for no-mixed-operators (#12328) (Chiawen Chen)
- 6e7c18dUpdate: enforceForNewInMemberExpressions no-extra-parens (fixes #12428) (#12436) (Milos Djermanovic)
- 2d6e345Update: make isSpaceBetweenTokens() ignore newline in comments (#12407) (YeonJuan)
- 84f71deUpdate: remove default overrides in keyword-spacing (fixes #12369) (#12411) (YeonJuan)
- 18a0b0eUpdate: improve report location for no-space-in-parens (#12364) (Chiawen Chen)
- d61c8a5Update: improve report location for no-multi-spaces (#12329) (Chiawen Chen)
- b962775Update: no-self-assign should detect member expression with this (#12279) (Tibor Blenessy)
Bug Fixes
- 0bffe95Fix: no-misleading-character-class crash on invalid regex (fixes #12169) (#12347) (Milos Djermanovic)
- 1744fabFix: operator-assignment removes and duplicates comments (#12485) (Milos Djermanovic)
- 52ca11aFix: operator-assignment invalid autofix with adjacent tokens (#12483) (Milos Djermanovic)
- 0f6d0dcFix: CLIEngine#addPlugin reset lastConfigArrays (fixes #12425) (#12468) (Toru Nagashima)
- 49faefbFix: no-obj-calls false positive (fixes #12437) (#12467) (Toru Nagashima)
- b3dbd96Fix: problematic installation issue (fixes #11018) (#12309) (Toru Nagashima)
- 89e8aafFix: improve report location for no-tabs (#12471) (Milos Djermanovic)
- a102eaaFix: prefer-numeric-literals invalid autofix with adjacent tokens (#12387) (Milos Djermanovic)
- 51fbbd7Fix: array-bracket-newline consistent error with comments (fixes #12416) (#12441) (Milos Djermanovic)
- e657d4cFix: report full dot location in dot-location (#12452) (Milos Djermanovic)
Documentation
- 8233873Docs: Add note about Node.js requiring SSL support (fixes #11413) (#12475) (Nicholas C. Zakas)
- e15e1f9Docs: fix doc for no-unneeded-ternary rule (fixes #12098) (#12410) (Sam Rae)
- 02977f2Docs: Clarify- eslint:recommendedsemver policy (#12429) (Kevin Partington)
- 97045aeDocs: Fixes object type for- rulesin “Use a Plugin” (#12409) (Daisy Develops)
- 24ca088Docs: Fix typo in v6 migration guide (#12412) (Benjamim Sonntag)
- 84467c0Docs: fix wrong max-depth example (fixes #11991) (#12358) (Gabriel R Sezefredo)
- 3642342Docs: Fix minor formatting/grammar errors (#12371) (cherryblossom000)
- c47fa0dDocs: Fix missing word in sentence (#12361) (Dan Boulet)
Dependency Upgrades
Chores
- 923a8cbChore: Fix lint failure in JSDoc comment (#12489) (Brandon Mills)
- e5382d6Chore: Remove unused parameter in dot-location (#12464) (Milos Djermanovic)
- 61749c9Chore: Provide debug log for parser errors (#12474) (Brad Zacher)
- fb633b2Chore: Add a script for testing with more control (#12444) (Eric Wang)
- b094008Chore: update version parameter name (#12402) (Toru Nagashima)
- e5637baChore: enable jsdoc/require-description (#12365) (Kai Cataldo)
- 7ffb22fChore: Clean up inline directive parsing (#12375) (Jordan Eldredge)
- 8108f49Chore: enable additional eslint-plugin-jsdoc rules (#12336) (Kai Cataldo)
- b718d2eChore: update issue template with --eslint-fix flag (#12352) (James George)
