v7.36.0
Added
- Allow this.refs in React > 18.3.0 for no-string-refs rule
- Add elementOverrides option to jsx-no-literals rule and ability to ignore this rule on specific elements
- Add forward-ref-uses-ref rule for checking ref parameter is added
Changed
- Add JSDoc type annotations to types
Fixed
- Use type args in function-component-definition, boolean-prop-naming, jsx-first-prop-new-line, jsx-props-no-multi-spaces, and propTypes rules
- JSX pragma fails gracefully
- Add explicitSpread option to jsx-props-no-spreading rule schema
Added
no-string-refs: allow this.refs in > 18.3.0 (#3807 @henryqdineen)jsx-no-literalsAddelementOverridesoption and the ability to ignore this rule on specific elements (#3812 @Pearce-Ropion)forward-ref-uses-ref: add rule for checking ref parameter is added ([#3667][] @NotWoods)
Fixed
function-component-definition,boolean-prop-naming,jsx-first-prop-new-line,jsx-props-no-multi-spaces,propTypes: use type args (#3629 @HenryBrown0)- JSX pragma: fail gracefully (#3632 @ljharb)
jsx-props-no-spreading: addexplicitSpreadoption to schema (#3799 @ljharb)
Changed
- [Tests] add @typescript-eslint/parser v6 (#3629 @HenryBrown0)
- [Tests] add @typescript-eslint/parser v7 and v8 (#3629 @hampustagerud)
- [Docs]
no-danger: update broken link (#3817 @lucasrmendonca) - [types] add jsdoc type annotations (#3731 @y-hsgw)
- [Tests]
button-has-type: add test case with spread (#3731 @y-hsgw)