Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
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)
Changed
v4.0.0-rc.1
v4.0.0-rc.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)
Changed
v3.16.1
v3.16.0
Added
- Add
jsx-equals-spacing
rule (#394 @ryym) - Add auto fix for
wrap-multiline
- Add auto fix for
jsx-boolean-value
- Add auto fix for
no-unknown-property
- Add auto fix for
jsx-curly-spacing
(#407 @ewendel) - Add
requiredFirst
option tojsx-sort-prop-types
(#392 @chrislaskey) - Add
ignoreRefs
option tojsx-no-bind
(#330 @silvenon)
Fixed
- Ignore
ref
injsx-handler-names
(again) (#396)
Changed
- Update dependencies
v3.15.0
Added
Fixed
- Fix
prop-types
crash when initializing class variable with an empty object (#383) - Fix
prop-types
crash when propTypes are using the spread operator (#389)
Changed
- Improve
sort-comp
error messages (#372 @SystemParadox) - Update dependencies