All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. This change log adheres to standards from Keep a CHANGELOG.
4.2.1 - 2016-03-08
- Fix
sort-prop-types
crash with spread operator (#478) - Fix stateless components detection when conditionally returning JSX (#486)
- Fix case where props were not assigned to the right component (#485)
- Fix missing
getChildContext
lifecycle method inprefer-stateless-function
(#492)
4.2.0 - 2016-03-05
- Add support for Flow annotations on stateless components (#467)
- Add
prefer-stateless-function
rule (#214) - Add auto fix for
jsx-indent-props
(#483 @shioju)
- Fix
jsx-no-undef
crash on objects (#469) - Fix propTypes detection when declared before the component (#472)
- Update dependencies
- Documentation improvements (#464 @alex-tan, #466 @awong-dev, #470 @Gpx; #462 @thaggie)
4.1.0 - 2016-02-23
- Add component detection for class expressions
- Add displayName detection for class expressions in
display-name
(#419)
- Fix used props detection in components for which we are not confident in
prop-types
(#420) - Fix false positive in
jsx-key
(#456 @jkimbo)
- Documentation improvements (#457 @wyze)
4.0.0 - 2016-02-19
- Add
jsx-space-before-closing
rule (#244 @ryym) - Add support for destructing in function signatures to
prop-types
(#354 @lencioni)
- 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)
- Only ignore lowercase JSXIdentifier in
jsx-no-undef
(#435) - Fix
jsx-handler-names
regex (#425) - Fix destructured props detection in
prop-types
(#443)
- Update dependencies (#426 @quentin-)
- Documentation improvements (#414 @vkrol, #370 @tmcw, #441 #429 @lencioni, #432 @note89, #438 @jmann6)
3.16.1 - 2016-01-24
- Fix
jsx-sort-prop-types
issue with custom propTypes (#408 @alitaheri)
3.16.0 - 2016-01-24
- 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)
- Ignore
ref
injsx-handler-names
(again) (#396)
- Update dependencies
3.15.0 - 2016-01-12
- Add support for flow annotations to
prop-types
(#382 @phpnode)
- 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)
- Improve
sort-comp
error messages (#372 @SystemParadox) - Update dependencies
3.14.0 - 2016-01-05
- Fix crash in
jsx-key
(#380 @nfcampos) - Fix crash in
forbid-prop-types
(#377 @nfcampos) - Ignore
ref
injsx-handler-names
(#375)
- Add AppVeyor CI to run tests on a Windows platform
- Add
sort-comp
codemod tosort-comp
documentation (#381 @turadg)
3.13.1 - 2015-12-26
- Fix crash in
jsx-key
(#373 @lukekarrys)
3.13.0 - 2015-12-24
- Add
no-string-refs
rule (#341 @Intellicode) - Add support for propTypes assigned via a variable in
prop-types
(#355)
- Fix
never
option inprefer-es6-class
- Fix
jsx-key
false-positives (#320 @silvenon)
3.12.0 - 2015-12-20
- Add
no-deprecated
rule (#356 @graue) - Add
no-is-mounted
rule (#37 @lencioni) - Add
never
option toprefer-es6-class
rule (#359 @pwmckenna)
- Fix
jsx-pascal-case
to stop checking lower cased components (#329) - Fix crash in component detection class (#364)
- Add link to eslint-plugin-react-native in Readme
- Update dependencies
3.11.3 - 2015-12-05
- Fix crash in
prop-types
when reassigning props (#345) - Fix
jsx-handler-names
for stateless components (#346)
- Update
jsx-handler-names
error messages to be less specific (#348 @jakemmarsh)
3.11.2 - 2015-12-01
- Add allow-in-func option to
no-did-update-set-state
documentation
3.11.1 - 2015-11-29
- Fix SVG attributes support for
no-unknown-property
(#338)
3.11.0 - 2015-11-29
- Add
jsx-handler-names
rule (#315 @jakemmarsh) - Add SVG attributes support to
no-unknown-property
(#318) - Add shorthandFirst option to
jsx-sort-props
(#336 @lucasmotta)
- Fix destructured props detection in stateless components (#326)
- Fix props validation for nested stateless components (#331)
- Fix
require-extension
to ignore extension if it's part of the package name (#319)
- Allow consecutive uppercase letters in
jsx-pascal-case
(#328 @lencioni) - Update dependencies
3.10.0 - 2015-11-21
- Add
jsx-pascal-case
rule (#306 @jakemmarsh)
- Fix crash on incomplete class property declaration (#317 @dapetcu21)
- Fix crash with ESLint 1.10.0 (#323 @lukekarrys)
3.9.0 - 2015-11-17
- Add
jsx-key
rule (#293 @benmosher) - Add
allow-in-func
option tono-did-update-set-state
(#300) - Add option to only enforce
jsx-closing-bracket-location
rule to one type of tag (nonEmpty or selfClosing) (#307)
- Fix crash when destructuring with only the rest spread (#269)
- Fix variables detection when searching for related components (#303)
- Fix
no-unknown-property
to not check custom elements (#308 @zertosh)
- Improve
jsx-closing-bracket-location
error message (#301 @alopatin) - Update dependencies
3.8.0 - 2015-11-07
- Add ignoreStateless option to
no-multi-comp
(#290)
- Fix classes with properties to always be marked as components (#291)
- Fix ES5 class detection when using
createClass
by itself (#297) - Fix direct props detection (#298)
- Ignore functions containing the keyword
this
during component detection
3.7.1 - 2015-11-05
- Fix
sort-comp
crash on stateless components (#285) - Fix crash in ES5 components detection (#286)
- Fix ES5 components detection from nested functions (#287)
3.7.0 - 2015-11-05
- Add
jsx-no-bind
rule (#184 @Daniel15) - Add line-aligned option to
jsx-closing-bracket-location
(#243 @alopatin)
- Fix a lot of issues about components detection, mostly related to stateless components (#264, #267, #268, #276, #277, #280)
- Update dependencies
3.6.3 - 2015-10-20
- Fix
display-name
for stateless components (#256) - Fix
prop-types
props validation in constructor (#259) - Fix typo in README (#261 @chiedojohn)
3.6.2 - 2015-10-18
- Fix wrong prop-types detection (#255)
3.6.1 - 2015-10-18
- Fix props validation in constructor (#254)
3.6.0 - 2015-10-18
- Add support for stateless function components to
display-name
andprop-types
(#237) - Add callbacksLast option to
jsx-sort-props
andjsx-sort-prop-types
(#242 @Daniel15) - Add
prefer-es6-class
rule (#247 @hamiltondanielb)
- Fix
forbid-prop-types
crash with destructured PropTypes (#230 @epmatsw) - Fix
forbid-prop-types
to do not modify AST directly (#249 @rhysd) - Fix
prop-types
crash with empty destructuring (#251) - Fix
prop-types
to not validate computed keys in destructuring (#236)
3.5.1 - 2015-10-01
- Fix
no-direct-mutation-state
to report only in React components (#229) - Fix
forbid-prop-types
for arrayOf and instanceOf (#230)
- Documentation improvements (#232 @edge)
3.5.0 - 2015-09-28
- Add
no-direct-mutation-state
rule (#133, #201 @petersendidit) - Add
forbid-prop-types
rule (#215 @pwmckenna)
- Fix no-did-mount/update-set-state rules, these rules were not working on ES6 classes
- Update dependencies
- Documentation improvements (#222 @Andersos)
3.4.2 - 2015-09-18
- Only display the
jsx-quotes
deprecation warning with the default formatter (#221)
3.4.1 - 2015-09-17
- Fix
jsx-quotes
rule deprecation message (#220)
3.4.0 - 2015-09-16
- Add namespaced JSX support to
jsx-no-undef
(#219 @zertosh) - Add option to
jsx-closing-bracket-location
to configure different styles for self-closing and non-empty tags (#208 @evocateur)
- Deprecate
jsx-quotes
rule, will now trigger a warning if used (#217)
3.3.2 - 2015-09-10
- Add
state
in lifecycle methods forsort-comp
rule (#197 @mathieudutour) - Treat component with render which returns
createElement
as valid (#206 @epmatsw)
- Fix allowed methods on arrayOf in
prop-types
(#146) - Fix default configuration for
jsx-boolean-value
(#210)
3.3.1 - 2015-09-01
- Update dependencies
- Update changelog to follow the Keep a CHANGELOG standards
- Documentation improvements (#198 @lencioni)
- Fix
jsx-closing-bracket-location
for multiline props (#199)
3.3.0 - 2015-08-26
- Add
jsx-indent-props
rule (#15, #181) - Add
no-set-state rule
(#197 @markdalgleish) - Add
jsx-closing-bracket-location
rule (#14, #64)
- Update dependencies
- Fix crash on propTypes declarations with an empty body (#193 @mattyod)
3.2.3 - 2015-08-16
- Update dependencies
3.2.2 - 2015-08-11
- Remove peerDependencies (#178)
3.2.1 - 2015-08-08
- Fix crash when propTypes don't have any parent (#182)
- Fix jsx-no-literals reporting errors outside JSX (#183 @CalebMorris)
3.2.0 - 2015-08-04
- Update dependencies
- Fix object access in
jsx-no-undef
(#172)
3.1.0 - 2015-07-28
- Add event handlers to
no-unknown-property
(#164 @mkenyon) - Add customValidators option to
prop-types
(#145 @CalebMorris)
- Update dependencies
- Documentation improvements (#167 @ngbrown)
- Fix comment handling in
jsx-curly-spacing
(#165)
3.0.0 - 2015-07-21
- Add jsx-no-duplicate-props rule (#161 @hummlas)
- Add allowMultiline option to the
jsx-curly-spacing
rule (#156 @mathieumg)
- In
jsx-curly-spacing
braces spanning multiple lines are now allowed withnever
option (#156 @mathieumg)
- Fix multiple var and destructuring handling in
props-types
(#159) - Fix crash when retrieving propType name (#163)
2.7.1 - 2015-07-16
- Update peerDependencies requirements (#154)
- Update codebase for ESLint v1.0.0
- Change oneOfType to actually keep the child types (#148 @CalebMorris)
- Documentation improvements (#147 @lencioni)
2.7.0 - 2015-07-11
2.6.4 - 2015-07-02
- Fix simple destructuring handling (#137)
2.6.3 - 2015-06-30
2.6.2 - 2015-06-28
- Fix props validation when using a prop as an object key (#132)
2.6.1 - 2015-06-28
- Fix crash in
prop-types
when encountering an empty variable declaration (#130)
2.6.0 - 2015-06-28
- Add support for nested propTypes (#62 #105 @Cellule)
- Add
require-extension
rule (#117 @scothis) - Add support for computed string format in
prop-types
(#127 @Cellule) - Add ES6 methods to
sort-comp
default configuration (#97 #122) - Add support for props destructuring directly on the this keyword
- Add
acceptTranspilerName
option todisplay-name
rule (#75) - Add schema to validate rules options
- Update dependencies
- Fix test command for Windows (#114 @Cellule)
- Fix detection of missing displayName and propTypes when
ecmaFeatures.jsx
is false (#119 @rpl) - Fix propTypes destructuring with properties as string (#118 @Cellule)
- Fix
jsx-sort-prop-types
support for keys as string (#123 @Cellule) - Fix crash if a ClassProperty has only one token (#125)
- Fix invalid class property handling in
jsx-sort-prop-types
(#129)
2.5.2 - 2015-06-14
- Fix regression in
jsx-uses-vars
withbabel-eslint
(#110)
2.5.1 - 2015-06-14
- Update dependencies
- Documentation improvements (#99 @morenoh149)
- Fix
prop-types
crash when propTypes definition is invalid (#95) - Fix
jsx-uses-vars
for ES6 classes (#96) - Fix hasOwnProperty that is taken for a prop (#102)
2.5.0 - 2015-06-04
- Add option to make
wrap-multilines
more granular (#94 @PiPeep)
2.4.0 - 2015-05-30
- Add pragma option to
jsx-uses-react
(#82 @dominicbarnes) - Add context props to
sort-comp
(#89 @zertosh)
- Update dependencies
- Documentation improvement (#91 @matthewwithanm)
- Fix itemID in
no-unknown-property
rule (#85 @cody) - Fix license field in package.json (#90 @zertosh)
- Fix usage of contructor in
sort-comp
options (#88)
2.3.0 - 2015-05-14
- Update dependencies
- Improve errors locations for
prop-types
- Fix quoted propTypes in ES6 (#77)
2.2.0 - 2015-04-22
- Add
jsx-sort-prop-types
rule (#38 @AlexKVal)
- Documentation improvements (#71 @AlexKVal)
- Fix variables marked as used when a prop has the same name (#69 @burnnat)
2.1.1 - 2015-04-17
- Add support for classes static properties (#43)
- Add tests for the
babel-eslint
parser - Add ESLint as peerDependency (#63 @AlexKVal)
2.1.0 - 2015-04-06
- Add
jsx-boolean-value
rule (#11) - Add support for static methods in
display-name
andprop-types
(#48)
- Update
jsx-sort-props
to reset the alphabetical verification on spread (#47 @zertosh) - Update
jsx-uses-vars
to be enabled by default (#49 @banderson)
- Fix describing comment for hasSpreadOperator() method (#53 @AlexKVal)
2.0.2 - 2015-03-31
- Fix ignore rest spread when destructuring props (#46)
- Fix component detection in
prop-types
anddisplay-name
(#45) - Fix spread handling in
jsx-sort-props
(#42 @zertosh)
2.0.1 - 2015-03-30
- Fix props detection when used in an object (#41)
2.0.0 - 2015-03-29
- Add
jsx-sort-props
rule (#16) - Add
no-unknown-property
rule (#28) - Add ignore option to
prop-types
rule
- Update dependencies
- In
prop-types
the children prop is no longer ignored
- Fix components are now detected when using ES6 classes (#24)
- Fix
prop-types
now return the right line/column (#33) - Fix props are now detected when destructuring (#27)
- Fix only check for computed property names in
prop-types
(#36 @burnnat)
1.6.1 - 2015-03-25
- Update
jsx-quotes
documentation
1.6.0 - 2015-03-22
- Allow
this.getState
references (not calls) in lifecycle methods (#22 @benmosher) - Update dependencies
- Fix
react-in-jsx-scope
in Node.js env - Fix usage of propTypes with an external object (#9)
1.5.0 - 2015-03-14
- Add
jsx-uses-vars
rule
- Fix
jsx-uses-react
for ESLint 0.17.0
1.4.1 - 2015-03-03
- Fix
this.props.children
marked as missing in props validation (#7) - Fix usage of
this.props
without property (#8)
1.4.0 - 2015-02-24
- Update
prop-types
to check props usage insead of propTypes presence (#4)
1.3.0 - 2015-02-24
- Add
no-did-mount-set-state
rule - Add
no-did-update-set-state
rule
- Update dependencies
1.2.2 - 2015-02-09
- Update dependencies
- Fix childs detection in
self-closing-comp
(#3)
1.2.1 - 2015-01-29
- Update Readme
- Update dependencies
- Update
wrap-multilines
andself-closing-comp
rules for ESLint 0.13.0
1.2.0 - 2014-12-29
- Add
self-closing-comp
rule
- Fix
display-name
andprop-types
rules
1.1.0 - 2014-12-28
- Add
display-name
rule - Add
wrap-multilines
rule - Add rules documentation
- Add rules tests
- First revision