Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v5.0.1
v5.0.0
Added
Breaking
- Update rules for React 15:
- Add warnings for
LinkedStateMixin
,ReactPerf.printDOM
andReactPerf.getMeasurementsSummaryMap
inno-deprecated
- Allow stateless components to return
null
inprefer-stateless-function
- Remove SVG attributes warnings (#490)
- Add warnings for
If you're still not using React 15 you can keep the old behavior by setting the React version to 0.14
in the shared settings.
Fixed
- Rewrite
require-render-return
rule (#542, #543) - Fix
prefer-stateless-function
crash (#544) - Fix external propTypes handling (#545)
- Do not mark inline functions in JSX as components (#546)
Changed
- Update dependencies
- Documentation improvements
v4.3.0
Added
- Add
require-render-return
rule (#482 @shmuga) - Add auto fix for
jsx-equals-spacing
(#506 @peet) - Add auto fix for
jsx-closing-bracket-location
(#511 @KevinGrandon)
Fixed
- Fix
prefer-stateless-function
for conditional JSX (#516) - Fix
jsx-pascal-case
to support single letter component names (#505 @dthielman)
Changed
- Update dependencies
- Documentation improvements (#509 @coryhouse, #526 @ahoym)
v4.2.3
v4.2.2
Fixed
- Rewrite
prefer-stateless-function
rule (#491) - Fix
self-closing-comp
to treat non-breaking spaces as content (#496) - Fix detection for direct props in
prop-types
(#497) - Fix annotated function detection in
prop-types
(#498) - Fix
this
usage injsx-no-undef
(#489)
Changed
- Update dependencies
- Add shared setting for React version
v4.2.1
v4.2.0
v4.1.0
v4.0.0
Added
- Add
jsx-space-before-closing
rule (#244 @ryym) - Add support for destructing in function signatures to
prop-types
(#354 @lencioni)
Breaking
- Add support for static methods to
sort-comp
. Static methods must now be declared first, see rule documentation (#128 @lencioni) - Add shareable config in place of default configuration.
jsx-uses-vars
is not enabled by default anymore, see documentation (#192) - Rename
jsx-sort-prop-types
tosort-prop-types
.jsx-sort-prop-types
still works but will trigger a warning (#87 @lencioni) - Remove deprecated
jsx-quotes
rule (#433 @lencioni) display-name
now accept the transpiler name by default. You can use theignoreTranspilerName
option to get the old behavior, see rule documentation (#440 @lencioni)
Fixed
- Only ignore lowercase JSXIdentifier in
jsx-no-undef
(#435) - Fix
jsx-handler-names
regex (#425) - Fix destructured props detection in
prop-types
(#443)