v7.14.0
Added
- Add
jsx-curly-newline
rule (#1493 @golopot) - Add support for nested destructuring to
prop-types
(#296 #1422 @golopot) - Add support for variables defined as props to
prop-types
andno-unused-prop-types
(#442 #833 #1002 #1116 #1257 #1764 @golopot) - Add
checkFragmentShorthand
option tojsx-key
(#2316 @kaykayehnn)
Fixed
- Fix
no-did-mount-set-state
andno-did-update-set-state
to handle cDU and cDM defined as class properties (#1595 @jaaberg) - Fix
sort-prop-types
cash when a shape PropType is defined in a variable (#1749 @alexzherdev) - Fix
no-unused-state
false positive when using state of non-lifecycle method (#2274 @golopot) - Fix
static-property-placement
false positive when accessing static property inside method (#2283 @dmason30) - Fix
prop-type
detection for annotated props with default value (#2298 @yannickcr)
Changed
- Add ESLint 6.0.0 as valid peerDependency (@yannickcr)
- Improve
no-render-return-value
performance (#2259 @golopot) - Change
jsx-sort-props
to report errors only on the identifier (#2312 @MrHen) - Change to warn only once if react version cannot be detected (#2276 @ljharb)
- Documentation improvements (#2263 @dimitropoulos, #2262 @ybiquitous, #2295 @battaglr, #2302 @Jason-Cooke, #2303 @golopot)
- Code refactoring (#2265 #2267 #2286 #2294 @golopot, @ljharb)
- Tests improvements (#2304 #1047 @golopot, @yannickcr)