v7.29.0
Added
- add
hook-use-staterule to enforce symmetric useState hook variable names (#2921 @duncanbeevers) jsx-no-target-blank: Improve fixer with optionallowReferrer(#3167 @apepper)jsx-curly-brace-presence: add "propElementValues" config option (#3191 @ljharb)- add
iframe-missing-sandboxrule (#2753 @tosmolka @ljharb) no-did-mount-set-state,no-did-update-set-state: no-op with react >= 16.3 (#1754 @ljharb)jsx-sort-props: support multiline prop groups (#3198 @duhamelgm)jsx-key: addwarnDuplicatesoption to warn on duplicate jsx keys in an array (#2614 @ljharb)jsx-sort-props: addlocaleoption (#3002 @ljharb)
Fixed
prop-types,propTypes: add support for exported type inference (#3163 @vedadeepta)no-invalid-html-attribute: allow 'shortcut icon' onlink(#3174 @Primajin)prefer-exact-propsimprove performance forIdentifiervisitor (#3190 @meowtec)propTypes: Handle TSTypeReference in no-unused-prop-type (#3195 @niik)sort-prop-types: avoid repeated warnings of the same node/reason (#519 @ljharb)jsx-indent: Fix indent handling for closing parentheses (#620 @stefanbuck])- [
prop-types/propTypes]: follow a returned identifier to see if it is JSX (#1046 @ljharb) no-unused-state: TS: supportgetDerivedStateFromPropsas an arrow function (#2061 @ljharb)no-array-index-key: catch.toStringandString()usage (#2813 @RedTn)function-component-definition: do not break on dollar signs (#3207 @ljharb)prefer-stateless-function: avoid a crash insidedoctrine(#2596 @ljharb)prop-types: catch infinite loop (#2861 @ljharb)forbid-prop-types: properly report name in error message; check undestructured arguments (#2945 @ljharb)
Changed
- [readme] change [
jsx-runtime] link from branch to sha (#3160 @tatsushitoji) - [Docs] HTTP => HTTPS (#3133 @Schweinepriester)
- [readme] Some grammar fixes (#3186 @JJ)
- [Docs]
jsx-no-target-blank: Improve readme (#3169 @apepper) - [Docs]
display-name: improve examples (#3189 @golopot) - [Refactor]
no-invalid-html-attribute: sort HTML_ELEMENTS and messages (#3182 @Primajin) - [Docs]
forbid-foreign-prop-types: documentallowInPropTypesoption (#1815 @ljharb) - [Refactor]
jsx-sort-default-props: remove unnecessary code (#1817 @ljharb) - [Docs]
jsx-no-target-blank: fix syntax highlighting (#3199 @shamrin) - [Docs]
jsx-key: improve example (#3202 @chnakamura) - [Refactor]
jsx-key: use more AST selectors (@ljharb)
New Contributors
- @tatsushitoji made their first contribution in #3160
- @Schweinepriester made their first contribution in #3133
- @Primajin made their first contribution in #3174
- @apepper made their first contribution in #3167
- @JJ made their first contribution in #3186
- @niik made their first contribution in #3195
- @tosmolka made their first contribution in #2753
- @stefanbuck made their first contribution in #620
- @kolpax made their first contribution in #1691
- @duhamelgm made their first contribution in #3198
- @shamrin made their first contribution in #3199
- @chnakamura made their first contribution in #3202
Full Changelog: v7.28.0...v7.29.0