eslint-plugin-react
Advanced tools
Changelog
[6.4.1] - 2016-10-10
jsx-indent
][] for arrays ([#897][], [#898][])jsx-indent
][] to allow multi-line logical expressions with one level of indent ([#896][])Changelog
[6.4.0] - 2016-10-09
skipUndeclared
option to [prop-types
][] ([#846][] @pfhayes)jsx-no-bind
][] crash on arrow functions ([#854][])display-name
][] false negative on es6-style method in React.createClass
([#852][])prefer-stateless-function
][] to allow components with childContextTypes
([#853][])no-children-prop
][] spread support ([#862][] @randycoulman)no-unused-prop-types
][] to ignore validation when spread is used ([#840][])jsx-closing-bracket-location
][] for multi-line prop ([#889][])jsx-indent
][] in multi-line function calls ([#895][])jsx-indent
][] in multi-line logical expressions ([#540][])Changelog
[6.3.0] - 2016-09-20
no-children-prop
][] rule ([#720][] @benstepp)no-unescaped-entities
][] rule ([#681][] @pfhayes)jsx-indent
][] rule ([#838][] @eelyafi)style-prop-object
][] crash ([#834][])style-prop-object
][] false positive on computed properties ([#820][])style-prop-object
][] to deal with null and spread props that can't be resolved ([#809][] [#812][] @petersendidit)Changelog
[6.2.2] - 2016-09-15
no-unused-prop-types
][] crash ([#825][] @EvNaverniouk)jsx-no-target-blank
][] crash ([#821][])Changelog
[6.2.1] - 2016-09-13
no-unused-prop-types
][] ([#792][] @EvNaverniouk)jsx-no-target-blank
][] to target only anchor elements ([#793][] @aduth)jsx-no-target-blank
][] to be case insensitive [#796][] @dmnd)jsx-uses-vars
][] shadowed variables handling ([#799][])Changelog
[6.2.0] - 2016-08-28
no-unused-prop-types
][] rule ([#226][] @EvNaverniouk)style-prop-object
][] rule ([#715][] @petersendidit)self-closing-comp
][] ([#770][] @pl12133)typeAnnotations
in [sort-comp
][] ([#235][] @dozoisch)PureComponent
in [prefer-stateless-function
][] ([#781][] @tiemevanveen)jsx-uses-vars
][] to work better with prefer-const
. You'll need to upgrade to ESLint 3.4.0 to completely fix the compatibility issue ([#716][])require-render-return
][] crash ([#784][])prop-types
][] ([#735][])Changelog
[6.1.2] - 2016-08-17
no-danger-with-children
][] ([#771][] @petersendidit)Changelog
[6.1.1] - 2016-08-16
prop-types
][] on annotated components ([#766][])no-danger-with-children
][] spread support ([#767][] @petersendidit)Changelog
[6.1.0] - 2016-08-14
React.PureComponent
support ([#737][])forbid-component-props
][] rule ([#314][] @lencioni)no-danger-with-children
][] rule ([#710][] @petersendidit)createClass
factory method ([#725][] @zurawiki)prop-types
][] on annotated components ([#729][])require-optimization
][] test for function declaration ([#744][] @Tom910)jsx-uses-vars
][] to handle nested object properties ([#761][] @yayalice)Changelog
[6.0.0] - 2016-08-01
all
shareable configuration with all rules enabled ([#674][] @pfhayes)no-find-dom-node
][] rule ([#678][])shorthandLast
option to [jsx-sort-props
][] ([#391][] @mathieumg)allowDecorators
option to [require-optimization
][] ([#669][] @Tom910)require-extension
][] rule, use the eslint-plugin-import extensions
rule instead. [require-extension
][] still works but will trigger a warningallow-in-func
mode by default in [no-did-mount-set-state
][] and [no-did-update-set-state
][] rules ([#702][] @lencioni)self-closing-comp
pragma
option from jsx-uses-react
, use the shared settings to specify a custom pragma ([#700][] @lencioni)react
option from [no-deprecated
][] rule, use the shared settings to specify the React version ([#700][] @lencioni)require-render-return
][] rule to recommended rulesno-danger
][] from recommended rules ([#636][] @mjackson)no-did-mount-set-state
][] and [no-did-update-set-state
][] from recommended rules ([#596][])jsx-sort-prop-types
][] rule, use [sort-prop-types
][] instead ([#549][] @lencioni)no-comment-textnodes
][] to [jsx-no-comment-textnodes
][]. [no-comment-textnodes
][] still works but will trigger a warning ([#668][] @lencioni)wrap-multilines
][] to [jsx-wrap-multilines
][]. [wrap-multilines
][] still works but will trigger a warning ([#668][] @lencioni)jsx-handler-names
][] incorrectly flagging only
([#571][] @lencioni)jsx-no-target-blank
][] ([#679][] @randycoulman)require-optimization
][] warning on stateless components ([#687][])jsx-uses-vars
][] that incorrectly marked some variables as used ([#694][] @lencioni)no-unknown-property
][] check on SVG attributes ([#718][])jsx-no-bind
][] reporting errors on render functions that don't return JSX ([#663][] @petersendidit)jsx-closing-bracket-location
][] autofix when location
is set to props-aligned
([#684][] @pfhayes)prop-types
][] for destructured arguments being assigned to the parent stateless component in some cases ([#698][])prop-types
][] for JSX return being assigned to the parent function in some cases ([#504][])jsx-curly-spacing
][] for reporting on JSX content by mistake ([#671][])prop-types
][] crash when accessing constructor on props ([#654][])jsx-filename-extension
][] to not check filenames on text input ([#662][] @ljharb)jsx-no-comment-textnodes
][] incorrectly catching urls ([#664][] @petersendidit)jsx-filename-extension
][] warning once per file ([#660][] @mathieumg)no-unknown-property