Published under: Release Notes
2 min read
Highlights
- Three new rules: no-import-assign, prefer-regex-literals, default-param-last
- accessor-pairs and computed-property-spacing rules has been updated with a new option
enforceForClassMembers
Features
1c921c6
New: add no-import-assign (fixes #12237) (#12252) (Toru Nagashima)3be04fd
New: Add prefer-regex-literals rule (fixes #12238) (#12254) (Milos Djermanovic)0313441
New: add rule default-param-last (fixes #11361) (#12188) (Chiawen Chen)
Enhancements
540296f
Update: enforceForClassMembers option to accessor-pairs (fixes #12063) (#12192) (Milos Djermanovic)d3c2334
Update: flag nested block with declaration as error (#12193) (David Waller)b2498d2
Update: Fix handling of property names in no-self-assign (#12105) (Milos Djermanovic)1ee61b0
Update: enforceForClassMembers computed-property-spacing (fixes #12049) (#12214) (Milos Djermanovic)db2a29b
Update: indentation of comment followed by semicolon (fixes #12232) (#12243) (Kai Cataldo)37c0fde
Update: Report global Atomics calls in no-obj-calls (fixes #12234) (#12258) (Milos Djermanovic)e38f5fd
Update: fix no-octal-escape false negatives after \0 (#12079) (Milos Djermanovic)7621f5d
Update: add more specific linting messages to space-in-parens (#11121) (Che Fisher)
Bug Fixes
f826eab
Fix: Allow line comment exception in object-curly-spacing (fixes #11902) (#12216) (Milos Djermanovic)ae17d1c
Fix: no-sequences is reporting incorrect locations (#12241) (Milos Djermanovic)365331a
Fix: object-shorthand providing invalid fixes for typescript (#12260) (Brad Zacher)985c9e5
Fix: space-before-function-paren autofix removes comments (fixes #12259) (#12264) (Milos Djermanovic)01da7d0
Fix: eqeqeq rule reports incorrect locations (#12265) (Milos Djermanovic)a41fdc0
Fix: Remove autofixer for no-unsafe-negation (#12157) (Milos Djermanovic)21eb904
Fix: basePath of OverrideTester (fixes #12032) (#12205) (Toru Nagashima)2b1a13f
Fix: no-extra-boolean-cast reports wrong negation node (fixes #11324) (#12197) (Milos Djermanovic)e10eeba
Fix: quotes autofix produces syntax error with octal escape sequences (#12118) (Milos Djermanovic)
Documentation
e915fff
Docs: Improve examples and clarify default option (#12067) (Yuping Zuo)520c922
Docs: Added naming convention details to plugin usage (#12202) (Henrique Barcelos)319e4d8
Docs: adding finally example (#12256) (Jens Melgaard)d52328f
Docs: fix no-sequenceswith
examples (#12239) (Milos Djermanovic)a0a9746
Docs: Fix link in no-irregular-whitespace.md (#12196) (Timo Tijhof)