Published under: Announcements
2 min read
Highlights
- The no-extra-parens rule has a new option
ternaryOperandBinaryExpressions
. eslint.config.js
configuration 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.parserServices
property is now deprecated in favor ofSourceCode#parserServices
. This change is part of the implementation of language plugins. - ESLint’s default parser
espree
now supports RegExpv
flag with set notation + properties of strings ES2024 syntax. Please note that the core rules have not yet been updated to support this syntax.
Features
1766771
feat: addes2023
andes2024
environments (#17328) (Milos Djermanovic)4c50400
feat: addecmaVersion: 2024
, regexpv
flag parsing (#17324) (Milos Djermanovic)4d411e4
feat: add ternaryOperandBinaryExpressions option to no-extra-parens rule (#17270) (Percy Ma)c8b1f4d
feat: MoveparserServices
toSourceCode
(#17311) (Milos Djermanovic)ef6e24e
feat: treat unknown nodes as having the lowest precedence (#17302) (Brad Zacher)1866e1d
feat: allow flat config files to export a Promise (#17301) (Milos Djermanovic)
Bug Fixes
a36bcb6
fix: no-unused-vars false positive with logical assignment operators (#17320) (Gweesin Chan)7620b89
fix: Removeno-unused-labels
autofix before potential directives (#17314) (Francesco Trotta)391ed38
fix: Removeno-extra-semi
autofix before potential directives (#17297) (Francesco Trotta)
Documentation
526e911
docs: resubmit pr 17115 doc changes (#17291) (唯然)e1314bf
docs: Integration section and tutorial (#17132) (Ben Perlmutter)19a8c5d
docs: Update README (GitHub Actions Bot)
Chores
49e46ed
chore: upgrade @eslint/js@8.44.0 (#17329) (Milos Djermanovic)a1cb642
chore: package.json update for @eslint/js release (ESLint Jenkins)840a264
test: More test cases for no-case-declarations (#17315) (Elian Cordoba)e6e74f9
chore: package.json update for eslint-config-eslint release (ESLint Jenkins)eb3d794
chore: upgrade semver@7.5.3 (#17323) (Ziyad El Abid)cf88439
chore: upgrade optionator@0.9.3 (#17319) (Milos Djermanovic)9718a97
refactor: remove unnecessary code inflat-eslint.js
(#17308) (Milos Djermanovic)f82e56e
perf: various performance improvements (#17135) (moonlightaria)da81e66
chore: update eslint-plugin-jsdoc to 46.2.5 (#17245) (唯然)b991640
chore: switch eslint-config-eslint to the flat format (#17247) (唯然)