v7.20.0
Added
- support eslint v7 (#2635 @ljharb, @toshi-toma)
- forbid-component-props/- forbid-dom-props: Allow a custom message with forbid props (#2615 @mtamhankar1)
- jsx-no-literals: add- ignorePropsoption to ignore props validation (#2146 @iiison)
Fixed
- jsx-sort-props: only use localeCompare when case is ignored (#2556 @tanmoyopenroot)
- jsx-key: add a failing test case for optional chaining (#2610 @JonathanLee-LX)
- no-unused-state: handle optional chaining (#2588 @golopot)
- jsx-pascal-case: Do not consider namespaces when checking for DOM (#2638 @yacinehmito)
- jsx-curly-spacing,- jsx-no-bind,- usedPropTypesutil: avoid node.start and node.end (25b1936 @toshi-toma)
- jsx-no-target-blank: allow- no-referrerwithout- noopenerby default (#2043 @seancrater)
- button-has-type: improve message when non-static value is used (aecff62 @golopot)
- no-adjacent-inline-elements: prevent crash on nullish children (#2621 @Rogdham)
- prop-types: avoid crash when spreading any type (#2606 @golopot))
- require-render-return: add missing "a" (#2604 @leothorp)
- jsx-no-comment-textnodes: fix for- @typescript-eslint/parser(#2601 @Axnyff)
- [displayName][]: avoid a crash when using React.memo (#2587 @golopot)
Docs
- Clean up examples in rule docs (#2546 @silvenon)
- [readme] Add Rules of Hooks to Other useful plugins section (#2633 @petetnt)
- no-this-in-sfc: backtick- this(#2616 @mrflip)
- function-component-definition: Fix unnamedComponents option examples (#2608 @vkrol))
Changed
- [Deps] Move "semver" to devDependencies (#2595 @rajivshah3)
- [eslint] remove operator-linebreakoverride (#2578 @golopot)
- [Tests] button-has-type: ensure no mistakenly allowed identifiers namedbutton/submit/reset(#2625 @golopot)
- [Tests] displayName: add a test case (#2593 @golopot)
- [Dev Deps] update @types/eslint,@types/estree,@types/node,@typescript-eslint/parser,coveralls,eslint-config-airbnb-base,eslint-plugin-import,typescript