Published under: Release Notes
2 min read
Highlights
- The new
no-new-native-nonconstructor
rule protects againstnew
ingBigInt
s andSymbol
s, which would throw an error. The existingno-new-symbol
rule only checks fornew Symbol
.no-new-native-nonconstructor
will take the place ofno-new-symbol
ineslint:recommended
in the next major release. - The new
no-empty-static-block
rule disallows empty ES2022 class static initialization blocks.
Features
f14587c
feat: newno-new-native-nonconstructor
rule (#16368) (Sosuke Suzuki)978799b
feat: add new ruleno-empty-static-block
(#16325) (Sosuke Suzuki)69216ee
feat: no-empty suggest to add comment in empty BlockStatement (#16470) (Nitin Kumar)319f0a5
feat: usecontext.languageOptions.ecmaVersion
in core rules (#16458) (Milos Djermanovic)
Bug Fixes
c3ce521
fix: Ensure unmatched glob patterns throw an error (#16462) (Nicholas C. Zakas)886a038
fix: handle files with unspecified path ingetRulesMetaForResults
(#16437) (Francesco Trotta)
Documentation
ce93b42
docs: Stylelint property-no-unknown (#16497) (Nick Schonning)d2cecb4
docs: Stylelint declaration-block-no-shorthand-property-overrides (#16498) (Nick Schonning)0a92805
docs: stylelint color-hex-case (#16496) (Nick Schonning)74a5af4
docs: fix stylelint error (#16491) (Milos Djermanovic)324db1a
docs: explicit stylelint color related rules (#16465) (Nick Schonning)94dc4f1
docs: use Stylelint for HTML files (#16468) (Nick Schonning)cc6128d
docs: enable stylelint declaration-block-no-duplicate-properties (#16466) (Nick Schonning)d03a8bf
docs: Add heading to justification explanation (#16430) (Maritaria)8a15968
docs: add Stylelint configuration and cleanup (#16379) (Nick Schonning)9b0a469
docs: note commit messages don’t support scope (#16435) (Andy Edwards)1581405
docs: improve context.getScope() docs (#16417) (Ben Perlmutter)b797149
docs: update formatters template (#16454) (Milos Djermanovic)5ac4de9
docs: fix link to formatters on the Core Concepts page (#16455) (Vladislav)33313ef
docs: core-concepts: fix link to semi rule (#16453) (coderaiser)