New rules
Improvements
- Add SOML support, including a
recommended-somlpreset (#3870) 7419b83 - Report code that contains comments instead of ignoring it (#3847) 003f0bd
- Many rules skipped code with comments. They now report it, and only withhold fixes that would remove comments. You may see new reports.
- Fix cyclic resolution in type-aware checks (#3826) 5e77e19
prefer-default-parameters: AddcheckFallbackExpressionsoption (#3837) 71bbf59prefer-ternary: AddcheckVaryingBaseandcheckComputedMemberAccessoptions (#3869) 1af3c2bconsistent-boolean-name: Allowdoesprefix by default (#3853) cfad028consistent-boolean-name: Recognize promise-returning functions (#3879) 769e3b8consistent-boolean-name: Fix cyclic type parameter resolution (#3821) 5c4808bno-asterisk-prefix-in-documentation-comments: Remove shared indentation (#3820) a92aee1no-await-in-promise-methods: Clarify the message for nestedawait(#3867) 8f73d53no-immediate-mutation: Combine a declaration with an assignment that follows it immediately (#3851) 811e467no-negated-condition: Support&&and||chains of negated operands (#3834) 15bfadeno-top-level-side-effects: Allow known pure imported helpers, likedefineConfig()and Reactmemo(), and check default-exported expressions (#3822) 3826236no-unnecessary-parameters: Fix false positive for recursive defaults (#3844) e2d8d0fno-unnecessary-parameters: Ignore parameters named by type predicates (#3859) f0c631cno-using-resource-escape: Check TypeScript instantiation expressions (#3833) 7a9f7dfprefer-at: Fix false positives for DOM collections (#3842) ca78a7aprefer-combined-guards: Combine non-literal exits in TypeScript when type information is available (#3860) 2bcc7beprefer-default-parameters: Support static template literal fallbacks (#3835) 3d8b40aprefer-default-parameters: Support fallbacks to earlier bindings (#3840) d4bfc1cprefer-default-parameters: Handle nullable fallback types (#3858) d75786fprefer-early-return,prefer-continue: Suggest opposite relational comparisons (#3873) de2e6daprefer-logical-operator-over-ternary: Handle non-boolean conditions (#3843) 5c4d50cprefer-minimal-ternary: Ignore formatting differences in shared expressions (#3841) b0c2142prefer-minimal-ternary: Prevent unsafe TypeScript object autofixes (#3846) 2f33c91prefer-observer-apis: Checkletandvarlistener functions, and ignore reassigned listeners (#3833) 7a9f7dfprefer-private-class-fields: Do not autofix reassigned methods, and suggest private arrow functions for bound methods (#3823) 6f0f4bbprefer-scoped-selector: Ignore queries on more non-element roots, likeownerDocumentandgetRootNode()(#3833) 7a9f7dfprefer-spread: Prevent unsafe TypeScript autofixes (#3882) 21e99ffprefer-ternary: Support destructuring assignments (#3852) e29d1eeprefer-ternary: Support statements that differ in only one part, likecall(test ? a : b)(#3869) 1af3c2bprefer-top-level-await: Allow cached promise assignments (#3819) 2fb8eb6prefer-top-level-await: Avoid false positives on non-promise calls (#3883) 3f125f1relative-url-style: Support complex Markdown labels, embedded HTML in Markdown, JSX,URL.canParse(),URL.parse(), and more HTML attributes (#3854) 2760ce4require-module-specifiers: Allow bareexport {}in declaration files (#3866) e727481template-indent: Ignore templates with content on the opening line (#3868) 921dd8c