
Highlights
- The no-extra-parens rule has a new option ternaryOperandBinaryExpressions.
- eslint.config.jsconfiguration files can now also export a promise that resolves to the configuration array. This can be useful for using ESM dependencies in CommonJS configuration files.
- The context.parserServicesproperty is now deprecated in favor ofSourceCode#parserServices. This change is part of the implementation of language plugins.
- ESLint’s default parser espreenow supports RegExpvflag with set notation + properties of strings ES2024 syntax. Please note that the core rules have not yet been updated to support this syntax.
Features
- 1766771feat: add- es2023and- es2024environments (#17328) (Milos Djermanovic)
- 4c50400feat: add- ecmaVersion: 2024, regexp- vflag parsing (#17324) (Milos Djermanovic)
- 4d411e4feat: add ternaryOperandBinaryExpressions option to no-extra-parens rule (#17270) (Percy Ma)
- c8b1f4dfeat: Move- parserServicesto- SourceCode(#17311) (Milos Djermanovic)
- ef6e24efeat: treat unknown nodes as having the lowest precedence (#17302) (Brad Zacher)
- 1866e1dfeat: allow flat config files to export a Promise (#17301) (Milos Djermanovic)
Bug Fixes
- a36bcb6fix: no-unused-vars false positive with logical assignment operators (#17320) (Gweesin Chan)
- 7620b89fix: Remove- no-unused-labelsautofix before potential directives (#17314) (Francesco Trotta)
- 391ed38fix: Remove- no-extra-semiautofix before potential directives (#17297) (Francesco Trotta)
Documentation
- 526e911docs: resubmit pr 17115 doc changes (#17291) (唯然)
- e1314bfdocs: Integration section and tutorial (#17132) (Ben Perlmutter)
- 19a8c5ddocs: Update README (GitHub Actions Bot)
Chores
- 49e46edchore: upgrade @eslint/js@8.44.0 (#17329) (Milos Djermanovic)
- a1cb642chore: package.json update for @eslint/js release (ESLint Jenkins)
- 840a264test: More test cases for no-case-declarations (#17315) (Elian Cordoba)
- e6e74f9chore: package.json update for eslint-config-eslint release (ESLint Jenkins)
- eb3d794chore: upgrade semver@7.5.3 (#17323) (Ziyad El Abid)
- cf88439chore: upgrade optionator@0.9.3 (#17319) (Milos Djermanovic)
- 9718a97refactor: remove unnecessary code in- flat-eslint.js(#17308) (Milos Djermanovic)
- f82e56eperf: various performance improvements (#17135) (moonlightaria)
- da81e66chore: update eslint-plugin-jsdoc to 46.2.5 (#17245) (唯然)
- b991640chore: switch eslint-config-eslint to the flat format (#17247) (唯然)
