Highlights
Unused eslint-enable
directives
The CLI option --report-unused-disable-directives
and the config option reportUnusedDisableDirectives:true
now also report and autofix unused eslint-enable
directives. An eslint-enable
directive is considered unused if it doesn’t match with any eslint-disable
directives, meaning that it doesn’t re-enable any rules.
/* eslint-disable no-console */
console.log("hello");
/* eslint-enable no-continue -- this directive is unused */
Features
Bug Fixes
5de9637
fix: Ensure shared references in rule configs are separated (#17666) (Nicholas C. Zakas)dcfe573
fix: add preceding semicolon in suggestions ofno-object-constructor
(#17649) (Francesco Trotta)
Documentation
476d58a
docs: Add note about invalid CLI flags when using flat config. (#17664) (Nicholas C. Zakas)660ed3a
docs: Plugin flat config migration guide (#17640) (Nicholas C. Zakas)a58aa20
docs: fix examples for several rules (#17645) (Milos Djermanovic)179929b
docs: Remove trailing newline from the code of Playground links (#17641) (Francesco Trotta)f8e5c30
docs: Update README (GitHub Actions Bot)b7ef2f3
docs: Enable pretty code formatter output (#17635) (Nicholas C. Zakas)0bcb9a8
docs: Fix syntax errors in rule examples (#17633) (Francesco Trotta)61b9083
docs: Make no-continue example code work (#17643) (Zhongyuan Zhou)9fafe45
docs: upgrade to 11ty 2.0 (#17632) (Percy Ma)ff8e4bf
docs: Update README (GitHub Actions Bot)fab249a
docs: Update README (GitHub Actions Bot)392305b
docs: Updateno-irregular-whitespace
and fix examples (#17626) (Francesco Trotta)6b8acfb
docs: Add real whitespace tono-trailing-spaces
examples (#17630) (Francesco Trotta)1000187
docs: Fix examples inunicode-bom
(#17631) (Francesco Trotta)000290c
docs: Update README (GitHub Actions Bot)
Chores
6d1f0c2
chore: upgrade @eslint/js@8.52.0 (#17671) (Milos Djermanovic)d63d4fe
chore: package.json update for @eslint/js release (ESLint Jenkins)f30cefe
test: fix FlatESLint tests for caching (#17658) (Milos Djermanovic)ef650cb
test: update tests for no-promise-executor-return (#17661) (Milos Djermanovic)