Releases: jsx-eslint/eslint-plugin-react
Releases · jsx-eslint/eslint-plugin-react
v6.0.0-alpha.1
Fixed
- Fix
prop-types
crash when accessing constructor on props (#654) - Fix
jsx-filename-extension
to not check filenames on text input (#662 @ljharb) - Fix
no-comment-textnodes
incorrectly catching urls (#664 @petersendidit)
Breaking
- Add ESLint as peerDependency (#657 @jokeyrhyme)
- Add Node.js 0.10 as minimum required version (#657 @jokeyrhyme)
Changed
- Update dependencies
- Update Travis CI and AppVeyor CI configurations (@ljharb)
v5.2.2
v5.2.1
v5.2.0
Added
- Add
require-optimization
rule (#240 @EvNaverniouk) - Add
jsx-filename-extension
rule (#495 @lencioni) - Add
no-render-return-value
rule (#531 @iamdustan) - Add
no-comment-textnodes
rule (#616 @benvinegar) - Add
objectLiterals
option tojsx-curly-spacing
(#388, #211 @casesandberg @ljharb) - Add option to
self-closing-comp
to check html tags (#572 @gitim) - Add
ignore
option tono-unknown-property
rule (#631 @insin) - Add support for ES7 bind operator to
jsx-handler-names
(#630) - Add support for explicit declaration that class extends React.Component (#68 @gausie)
Fixed
- Fix
jsx-closing-bracket-location
multiline prop support (#493 @tuures) - Fix
prop-types
for props that where not assigned to the right component (#591) - Fix
display-name
when JSON style is used for defining components (#590 @gitim) - Fix
jsx-no-bind
for bind detection in render when assigned to a variable (#474 @petersendidit) - Fix
jsx-curly-spacing
for spread operator (#606 @gitim) - Fix
sort-comp
crash on spread operator (#624) - Fix
prop-types
crash when destructuring props with spread only
Changed
v5.1.1
v5.1.0
Added
- Add
jsx-no-target-blank
rule (#582 @Gasparila) - Add
allowAllCaps
andignore
options tojsx-pascal-case
(#575) - Add class properties support to
require-render-return
(#564)
Fixed
- Fix
jsx-closing-bracket-location
fixer (#533 @dtinth) - Fix
require-render-return
to only check valid render methods (#563) - Fix detection to allow simple
this
usage in fonctional components (#576) - Fix
forbid-prop-types
crash (#579) - Fix comment handling in
jsx-curly-spacing
(#584)
Changed
- Update dependencies
- Documentation improvements (@coryhouse, #581 @scurker, #588)
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)