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.
7.1.0 - 2017-06-13
- Add
default-props-match-prop-types
rule (#1022 @webOS101) - Add
no-redundant-should-component-update
rule (#985 @jomasti) - Add
jsx-closing-tag-location
rule (#1206 @rsolomon) - Add auto fix for
jsx-max-props-per-line
(#949 @snowypowers) - Add support for lifecycle methods with
nextProps
/prevProps
inno-unused-prop-types
(#1213 @jseminck) - Add Flow SuperTypeParameters support to
prop-types
(#1236 @gpeal) - Add
children
option tojsx-curly-spacing
(#857 @fatfisz)
- Fix
prefer-stateless-function
ignorePureComponents
option when using class expressions (#1122 @dreid) - Fix
void-dom-elements-no-children
crash (#1195 @oliviertassinari) - Fix
require-default-props
quoteddefaultProps
detection (#1201) - Fix
jsx-sort-props
bug withignoreCase
andcallbacksLast
options set totrue
(#1175 @jseminck) - Fix
no-unused-prop-types
false positive (#1183 #1135 @jseminck) - Fix
jsx-no-target-blank
to not issue errors for non-external URLs (#1216 @gfx) - Fix
prop-types
quoted Flow types detection (#1132 @ethanjgoldberg) - Fix
no-array-index-key
crash withkey
without value (#1242 @jseminck)
- Set ESLint 4.0.0 as valid peerDependency
- Dead code removal (#1227 @jseminck)
- Update dependencies (@ljharb)
- Documentation improvements (#1071 @adnasa, #1199 @preco21, #1222 @alexilyaev, #1231 @vonovak, #1239 @webOS101, #1241 @102)
7.0.1 - 2017-05-13
- Fix
jsx-curly-spacing
allowMultiline
option being undefined in some cases (#1179 @fatfisz) - Fix
jsx-curly-spacing
newline with object literals bug (#1180 @fatfisz) - Fix
prop-types
to not mark class static function as valid propTypes definition (#1174) - Fix
prop-types
crash with Flow spread operator (#1178) - Fix
void-dom-elements-no-children
crash on faultycreateElement
detection (#1101) - Fix
require-default-props
error message for quoted props (#1161)
7.0.0 - 2017-05-06
- Add
no-will-update-set-state
rule (#1139 @ManThursday) - Add import and destructuring support to
no-deprecated
- Add
reservedFirst
option tojsx-sort-props
(#1134 @MatthewHerbst)
- Update rules for React 15.5.0:
- Add warnings for
React.PropTypes
andReact.createClass
inno-deprecated
(#1148 @Calyhre) - Update
createClass
component factory tocreateReactClass
. This is used for React component detection, if you still usingReact.createClass
use the shared settings to specifycreateClass
as component factory
- Add warnings for
- Drop Node.js < 4 support (#1038 @ljharb)
- Add
no-danger-with-children
rule to recommended rules (#748 @ljharb) - Add
no-string-refs
rule to recommended rules (#749 @ljharb) - Add
jsx-key
rule to recommended rules (#750 @ljharb) - Add
jsx-no-comment-textnodes
rule to recommended rules (#751 @ljharb) - Add
jsx-no-target-blank
rule to recommended rules (#752 @ljharb) - Add
no-unescaped-entities
rule to recommended rules (#841 @ljharb) - Add
no-children-prop
rule to recommended rules (#842 @ljharb) - Remove deprecated
wrap-multilines
rule, usejsx-wrap-multilines
instead - Remove deprecated
no-comment-textnodes
rule, usejsx-no-comment-textnodes
instead - Remove deprecated
require-extension
rule, use the eslint-plugin-importextensions
rule instead - Deprecate
jsx-space-before-closing
rule, use thejsx-tag-spacing
rule instead.jsx-space-before-closing
still works but will trigger a warning (#1070 @afairb) jsx-first-prop-new-line
default is nowmultiline-multiprop
(#802 @kokarn)jsx-wrap-multilines
now checks arrow functions without block body. It can be deactivated in rule options (#790 @ColCh)jsx-no-undef
will not check the global scope by default. You can force it with theallowGlobals
option (#1013 @jomasti)
- Fix
no-unused-prop-types
false positive withnextProps
(#1079 @Kerumen) - Fix
prefer-stateless-function
to not warn on classes with decorators (#1034 @benstepp)
- Update dependencies (#1119 @danez)
- Documentation improvements (#1121 @omerzach, #1130 @dreid, #1131 @shoesandsocks, #1149 @Adzz, #1151 @MatthewHerbst, #1167 @Slumber86)
6.10.3 - 2017-03-20
- Revert #1057 due to issues with
jsx-indent
(#1117)
6.10.2 - 2017-03-19
- Fix
jsx-indent
indentation calculation with nested JSX (#1117)
6.10.1 - 2017-03-19
- Fix
jsx-indent
auto fix with tabs (#1057 @kentcdodds @webOS101) - Fix
jsx-indent
crash (#1061 @iancmyers) - Fix
void-dom-elements-no-children
crash and fix it to only checks for a createElement call from React (#1073 @jomasti) - Fix component detection that caused a false positive in
no-multi-comp
(#1088 @benstepp)
6.10.0 - 2017-02-16
- Add
forbid-foreign-prop-types
rule (#696 @iancmyers) - Add
void-dom-elements-no-children
rule (#709 @lencioni) - Add
forbid-elements
rule (#887 @kentor) - Add
noSortAlphabetically
option tojsx-sort-props
(#541 #786 @markus101) - Add
when
option tojsx-max-props-per-line
(#878 @kentor) - Add support for
nextProps
toprop-types
(#814)
- Fix
require-default-props
crash (#1029) - Fix
require-default-props
rule when using Flow type from assignment (#1043 @wyze @CarlRosell) - Fix
style-prop-object
to not warn with explicitnull
orundefined
(#812 @ljharb) - Fix
no-unused-prop-types
props detection in stateless components (#885 @BarryThePenguin) - Fix
display-name
false positive withdocument.createElement
(#996 @jomasti) - Fix ESLint 2 compatibility (@ljharb)
- Tests improvements (@ljharb)
- Documentation improvements (#958 @Jorundur, #1010 @amilajack, #1041 @EvNaverniouk, #1050 @lencioni, #1062 @dguo)
6.9.0 - 2017-01-08
- Add support for variable reference to
sort-prop-types
(#622)
- Fix Node.js 0.10 support (#1000 @ljharb)
- Fix
prop-types
to correctly assign props to components (#991)
- Documentation improvements (#995 @rutsky)
6.8.0 - 2016-12-05
- Add
no-array-index-key
rule (#978 @lencioni) - Add
require-default-props
rule (#528 @vitorbal) - Add support for flow variance syntax to
prop-types
(#961 @ajhyndman)
- Fix
jsx-indent
with multiline jsx in ternaries (#966) - Fix component detection to ignore async functions (#989 @taion)
- Fix
jsx-curly-spacing
autofix to not delete comments (#648) - Fix auto-enabling of
eslint-plugin-react
in exported configurations (#984 @jamischarles)
- Update dependencies
- Documentation improvements (#960 @evilebottnawi, #973 @JamesWatling, #982 @captbaritone)
6.7.1 - 2016-11-15
- Fix
jsx-tag-spacing
crash when options object isn't passed (#955 @daltones)
6.7.0 - 2016-11-14
- Add
jsx-tag-spacing
rule (#693 @Kovensky)
- Fix
jsx-indent
for parenthesized ternaries (#945 @voxpelli) - Fix
jsx-indent
for multiline ternaries - Fix
jsx-indent
for arrays in jsx (#947) - Fix
no-danger-with-children
crash with spread on global variables (#921) - Fix
jsx-wrap-multilines
ternaries handling (#916)
- Enable
no-unused-prop-types
skipShapeProps
option by default to limit false positive (#953 @everdimension)
6.6.0 - 2016-11-06
- Add
jsx-first-prop-new-line
auto fix (#886 @snowypowers)
- Fix
no-unused-prop-types
crash with destructured prop-types (#938) - Fix
jsx-indent
in multi-line conditional expressions (#901, #907) - Fix
sort-comp
bad error message if 2 methods in the same group must be moved (#507)
- Documentation improvements (#941 @pwmckenna)
6.5.0 - 2016-11-01
- Add tab support to
jsx-closing-bracket-location
auto fixer (#909 @arperry) - Add tab and space support to
jsx-indent
auto fixer (#608 @jayphelps) - Add
multiline-multiprop
option tojsx-first-prop-new-line
(#883 @kentor)
- Fix
forbid-component-props
crash with self reference JSX element (#839 @xeodou) - Fix
jsx-indent
to ignore lines starting by literals (#900) - Fix
no-set-state
to correctly detectsetState
in arrow functions (#931)
- Update dependencies
- Add
deprecated
metadata to deprecated rules (#911 @randycoulman) - Auto-enable
eslint-plugin-react
in exported configurations (#925 @MoOx) - Documentation improvements (#910 @Wilfred, #932 @gnarf)
6.4.1 - 2016-10-10
- Fix
jsx-indent
for arrays (#897, #898) - Fix
jsx-indent
to allow multi-line logical expressions with one level of indent (#896)
6.4.0 - 2016-10-09
- Add
skipUndeclared
option toprop-types
(#846 @pfhayes)
- Fix
jsx-no-bind
crash on arrow functions (#854) - Fix
display-name
false negative on es6-style method inReact.createClass
(#852) - Fix
prefer-stateless-function
to allow components withchildContextTypes
(#853) - Fix
no-children-prop
spread support (#862 @randycoulman) - Fix
no-unused-prop-types
to ignore validation when spread is used (#840) - Fix
jsx-closing-bracket-location
for multi-line prop (#889) - Fix
jsx-indent
in multi-line function calls (#895) - Fix
jsx-indent
in multi-line logical expressions (#540)
- Update dependencies
- Documentation improvements (#860 @fson, #863 @corydolphin, #830 @eelyafi, #876 @manovotny, #877 @gaearon)
6.3.0 - 2016-09-20
- Add
no-children-prop
rule (#720 @benstepp) - Add
no-unescaped-entities
rule (#681 @pfhayes) - Add JSXExpressionContainer support to
jsx-indent
rule (#838 @eelyafi)
- Fix
style-prop-object
crash (#834) - Fix
style-prop-object
false positive on computed properties (#820) - Fix
style-prop-object
to deal with null and spread props that can't be resolved (#809 #812 @petersendidit)
6.2.2 - 2016-09-15
- Fix
no-unused-prop-types
crash (#825 @EvNaverniouk) - Fix
jsx-no-target-blank
crash (#821)
6.2.1 - 2016-09-13
- Fix false positive in
no-unused-prop-types
(#792 @EvNaverniouk) - Fix
jsx-no-target-blank
to target only anchor elements (#793 @aduth) - Fix
jsx-no-target-blank
to be case insensitive #796 @dmnd) - Fix
jsx-uses-vars
shadowed variables handling (#799)
- Update dependencies
- Documentation improvements (@ljharb, #794 @dougshamoo, #813 @AndiDog, #815 @chris-vaszauskas)
6.2.0 - 2016-08-28
- Add
no-unused-prop-types
rule (#226 @EvNaverniouk) - Add
style-prop-object
rule (#715 @petersendidit) - Add auto fix for
self-closing-comp
(#770 @pl12133) - Add support for
typeAnnotations
insort-comp
(#235 @dozoisch) - Add support for
PureComponent
inprefer-stateless-function
(#781 @tiemevanveen)
- Fix
jsx-uses-vars
to work better withprefer-const
. You'll need to upgrade to ESLint 3.4.0 to completely fix the compatibility issue (#716) - Fix
require-render-return
crash (#784) - Fix related components detection in
prop-types
(#735) - Fix component detection to ignore functions expression without a parent component
- Update dependencies
- Documentation improvements (@lencioni)
6.1.2 - 2016-08-17
- Fix nested spread handling in
no-danger-with-children
(#771 @petersendidit)
- Documentation improvements
6.1.1 - 2016-08-16
- Fix
prop-types
on annotated components (#766) - Fix
no-danger-with-children
spread support (#767 @petersendidit)
- Documentation improvements (#769 @daltones)
6.1.0 - 2016-08-14
- Add
React.PureComponent
support (#737) - Add
forbid-component-props
rule (#314 @lencioni) - Add
no-danger-with-children
rule (#710 @petersendidit) - Add pragma for
createClass
factory method (#725 @zurawiki)
- Fix Node.js 0.10 support (#746)
- Fix
prop-types
on annotated components (#729) - Fix
require-optimization
test for function declaration (#744 @Tom910) - Fix
jsx-uses-vars
to handle nested object properties (#761 @yayalice) - Fix rules metadata
- Update dependencies
- Documentation improvements (#759 @embrown, #703 #753 @lencioni, #739 @ljharb, #731 @wKich, #745 @petersendidit, #659 @dguo)
6.0.0 - 2016-08-01
- Add an
all
shareable configuration with all rules enabled (#674 @pfhayes) - Add
no-find-dom-node
rule (#678) - Add
shorthandLast
option tojsx-sort-props
(#391 @mathieumg) - Add
allowDecorators
option torequire-optimization
(#669 @Tom910)
- Deprecate
require-extension
rule, use the eslint-plugin-importextensions
rule instead.require-extension
still works but will trigger a warning - Enable
allow-in-func
mode by default inno-did-mount-set-state
andno-did-update-set-state
rules (#702 @lencioni) - Enable html tags check by default in
self-closing-comp
- Remove
pragma
option fromjsx-uses-react
, use the shared settings to specify a custom pragma (#700 @lencioni) - Remove
react
option fromno-deprecated
rule, use the shared settings to specify the React version (#700 @lencioni) - Add
require-render-return
rule to recommended rules - Remove
no-danger
from recommended rules (#636 @mjackson) - Remove
no-did-mount-set-state
andno-did-update-set-state
from recommended rules (#596) - Remove deprecated
jsx-sort-prop-types
rule, usesort-prop-types
instead (#549 @lencioni) - Rename
no-comment-textnodes
tojsx-no-comment-textnodes
.no-comment-textnodes
still works but will trigger a warning (#668 @lencioni) - Rename
wrap-multilines
tojsx-wrap-multilines
.wrap-multilines
still works but will trigger a warning (#668 @lencioni) - Add ESLint as peerDependency (#657 @jokeyrhyme)
- Add Node.js 0.10 as minimum required version (#657 @jokeyrhyme)
- Fix
jsx-handler-names
incorrectly flagging [only
][] (#571 @lencioni) - Fix spread props cash in
jsx-no-target-blank
(#679 @randycoulman) - Fix
require-optimization
warning on stateless components (#687) - Fix
jsx-uses-vars
that incorrectly marked some variables as used (#694 @lencioni) - Fix
no-unknown-property
check on SVG attributes (#718) - Fix
jsx-no-bind
reporting errors on render functions that don't return JSX (#663 @petersendidit) - Fix
jsx-closing-bracket-location
autofix whenlocation
is set toprops-aligned
(#684 @pfhayes) - Fix
prop-types
for destructured arguments being assigned to the parent stateless component in some cases (#698) - Fix
prop-types
for JSX return being assigned to the parent function in some cases (#504) - Fix
jsx-curly-spacing
for reporting on JSX content by mistake (#671) - Fix
prop-types
crash when accessing constructor on props (#654) - Fix
jsx-filename-extension
to not check filenames on text input (#662 @ljharb) - Fix
jsx-no-comment-textnodes
incorrectly catching urls (#664 @petersendidit)
- Only report
jsx-filename-extension
warning once per file (#660 @mathieumg) - Update SVG and DOM attribute list for
no-unknown-property
- Update rules to use the new ESLint rule format (#661 @petersendidit)
- Update dependencies
- Documentation improvements (#724 @lencioni)
- Update Travis CI and AppVeyor CI configurations (@ljharb)
5.2.2 - 2016-06-17
- Fix
jsx-no-bind
crash (#641)
5.2.1 - 2016-06-17
- Fix
jsx-pascal-case
for namespaced components (#637 @evcohen)
5.2.0 - 2016-06-17
- 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)
- 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
- Update dependencies
- Add doctrine as a dependency (#68 @gausie)
- Add jsx-ast-utils as a dependency (#634 @evcohen)
- Documentation improvements (#594 @lencioni, #598 @mLuby, #633 @appsforartists)
5.1.1 - 2016-05-10
- Fix
require-render-return
crash (#589)
5.1.0 - 2016-05-10
- 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)
- 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)
5.0.1 - 2016-04-18
- Fix
require-render-return
to not check stateless functions (#550)
5.0.0 - 2016-04-17
- Add
jsx-first-prop-new-line
rule (#410 @jseminck)
- 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.
- 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)
- Update dependencies
- Documentation improvements
4.3.0 - 2016-04-07
- 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)
- Fix
prefer-stateless-function
for conditional JSX (#516) - Fix
jsx-pascal-case
to support single letter component names (#505 @dthielman)
4.2.3 - 2016-03-15
- Fix class properties retrieval in
prefer-stateless-function
(#499)
4.2.2 - 2016-03-14
- 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)
- Update dependencies
- Add shared setting for React version
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)
3.14.0 - 2016-01-05
- Add
jsx-indent
rule (#342) - Add shared setting for pragma configuration (#228 @NickStefan)
- 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
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
- Allow numbers in
jsx-pascal-case
(#339) - Fix
jsx-handler-names
crash with arrays (#340)
- Add
allow-in-func
option tono-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
- Add
jsx-max-props-per-line
rule (#13) - Add
jsx-no-literals
rule (#176 @CalebMorris)
- 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
- Add
no-danger
rule (#138 @scothis) - Add
jsx-curly-spacing
rule (#142)
2.6.4 - 2015-07-02
- Fix simple destructuring handling (#137)
2.6.3 - 2015-06-30
- Fix ignore option for
prop-types
rule (#135) - Fix nested props destructuring (#136)
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
- Add
sort-comp
rule (#39) - Add
allow-in-func
option tono-did-mount-set-state
(#56)
- 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
- Fix
jsx-no-undef
withbabel-eslint
(#30) - Fix
jsx-quotes
on Literal childs (#29)
1.6.0 - 2015-03-22
- Add
jsx-no-undef
rule - Add
jsx-quotes
rule (#12) - Add
@jsx
pragma support (#23)
- 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
- Add
react-in-jsx-scope
rule (#5 @glenjamin) - Add
jsx-uses-react
rule (#6 @glenjamin)
- 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