Published under: Release Notes
2 min read
Highlights
- The new
--no-error-on-unmatched-pattern
CLI flag prevents errors when a quoted glob pattern or--ext
is not matched. - ESLint now looks for
.eslintrc.cjs
config files to allow CommonJS-based configs in ES Module-based packages.
Features
Enhancements
5c25a26
Update: autofix bug in lines-between-class-members (fixes #12391) (#12632) (YeonJuan)05faebb
Update: improve suggestion testing experience (#12602) (Brad Zacher)05f7dd5
Update: Add suggestions for no-unsafe-negation (fixes #12591) (#12609) (Milos Djermanovic)1600648
Update: Allow $schema in config (#12612) (Yordis Prieto)acc0e47
Update: support .eslintrc.cjs (refs eslint/rfcs#43) (#12321) (Evan Plaice)a230f84
Update: include node version in cache (#12582) (Eric Wang)6e36d12
Update: do not recommend require-atomic-updates (refs #11899) (#12599) (Kai Cataldo)
Bug Fixes
c5c7086
Fix: ignore aligning single line in key-spacing (fixes #11414) (#12652) (YeonJuan)272e4db
Fix: no-multiple-empty-lines: Adjust reportedloc
(#12594) (Tobias Bieniek)a258039
Fix: no-restricted-imports schema allows multiple paths/patterns objects (#12639) (Milos Djermanovic)51f9620
Fix: improve report location for array-bracket-spacing (#12653) (Milos Djermanovic)45364af
Fix: prefer-numeric-literals doesn’t check types of literal arguments (#12655) (Milos Djermanovic)
Documentation
d3e43f1
Docs: Update no-multi-assign explanation (#12615) (Yuping Zuo)e3c570e
Docs: Add example for expression option (#12694) (Arnaud Barré)6b774ef
Docs: Add spacing in comments for no-console rule (#12696) (Nikki Nikkhoui)ab912f0
Docs: 1tbs with allowSingleLine edge cases (refs #12284) (#12314) (Ari Kardasis)e9cef99
Docs: wrap {{}} in raw liquid tags to prevent interpolation (#12643) (Kai Cataldo)e707453
Docs: Fix configuration example in no-restricted-imports (fixes #11717) (#12638) (Milos Djermanovic)
Chores
9986d9e
Chore: add object option test cases in yield-star-spacing (#12679) (YeonJuan)4b3cc5c
Chore: enable prefer-regex-literals in eslint codebase (#12268) (薛定谔的猫)7171fca
Chore: refactor regex in config comment parser (#12662) (Milos Djermanovic)49c1658
Chore: remove bundling of ESLint during release (#12676) (Kai Cataldo)257f3d6
Chore: complete to move to GitHub Actions (#12625) (Toru Nagashima)8b65f17
Chore: remove references to parser demo (#12644) (Kai Cataldo)19194ce
Chore: Add tests to cover default object options in comma-dangle (#12627) (YeonJuan)