@@ -10,19 +10,19 @@ module.exports = {
1010 'rules' : {
1111 // Prevent missing displayName in a React component definition
1212 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/display-name.md
13- 'react/display-name' : [ 0 , { 'acceptTranspilerName' : false } ] ,
13+ 'react/display-name' : [ 0 , { 'acceptTranspilerName' : false } ] ,
1414 // Forbid certain propTypes (any, array, object)
1515 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-prop-types.md
16- 'react/forbid-prop-types' : [ 0 , { 'forbid' : [ 'any' , 'array' , 'object' ] } ] ,
16+ 'react/forbid-prop-types' : [ 0 , { 'forbid' : [ 'any' , 'array' , 'object' ] } ] ,
1717 // Enforce boolean attributes notation in JSX
1818 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
1919 'react/jsx-boolean-value' : [ 2 , 'always' ] ,
2020 // Validate closing bracket location in JSX
2121 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md
22- 'react/jsx-closing-bracket-location' : [ 2 , { 'selfClosing' : 'tag-aligned' , 'nonEmpty' : 'after-props' } ] ,
22+ 'react/jsx-closing-bracket-location' : [ 2 , { 'selfClosing' : 'tag-aligned' , 'nonEmpty' : false } ] ,
2323 // Enforce or disallow spaces inside of curly braces in JSX attributes
2424 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
25- 'react/jsx-curly-spacing' : [ 0 , 'never' , { 'allowMultiline' : true } ] ,
25+ 'react/jsx-curly-spacing' : [ 0 , 'never' , { 'allowMultiline' : true } ] ,
2626 // Enforce event handler naming conventions in JSX
2727 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
2828 'react/jsx-handler-names' : [ 0 , {
@@ -37,13 +37,13 @@ module.exports = {
3737 'react/jsx-key' : 0 ,
3838 // Limit maximum of props on a single line in JSX
3939 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md
40- 'react/jsx-max-props-per-line' : [ 0 , { 'maximum' : 1 } ] ,
40+ 'react/jsx-max-props-per-line' : [ 0 , { 'maximum' : 1 } ] ,
4141 // Prevent usage of .bind() and arrow functions in JSX props
4242 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
4343 'react/jsx-no-bind' : 2 ,
4444 // Prevent duplicate props in JSX
4545 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
46- 'react/jsx-no-duplicate-props' : [ 0 , { 'ignoreCase' : false } ] ,
46+ 'react/jsx-no-duplicate-props' : [ 0 , { 'ignoreCase' : false } ] ,
4747 // Prevent usage of unwrapped JSX strings
4848 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-literals.md
4949 'react/jsx-no-literals' : 0 ,
@@ -76,7 +76,7 @@ module.exports = {
7676 'react/no-danger' : 0 ,
7777 // Prevent usage of deprecated methods
7878 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md
79- 'react/no-deprecated' : [ 0 , { 'react' : '0.14.0' } ] ,
79+ 'react/no-deprecated' : [ 0 , { 'react' : '0.14.0' } ] ,
8080 // Prevent usage of setState in componentDidMount
8181 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md
8282 'react/no-did-mount-set-state' : [ 2 , 'allow-in-func' ] ,
@@ -91,7 +91,7 @@ module.exports = {
9191 'react/no-is-mounted' : 0 ,
9292 // Prevent multiple component definition per file
9393 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
94- 'react/no-multi-comp' : [ 2 , { 'ignoreStateless' : true } ] ,
94+ 'react/no-multi-comp' : [ 2 , { 'ignoreStateless' : true } ] ,
9595 // Prevent usage of setState
9696 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-set-state.md
9797 'react/no-set-state' : 0 ,
@@ -106,13 +106,13 @@ module.exports = {
106106 'react/prefer-es6-class' : [ 0 , 'always' ] ,
107107 // Prevent missing props validation in a React component definition
108108 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
109- 'react/prop-types' : [ 2 , { 'ignore' : [ ] , customValidators : [ ] } ] ,
109+ 'react/prop-types' : [ 2 , { 'ignore' : [ ] , customValidators : [ ] } ] ,
110110 // Prevent missing React when using JSX
111111 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md
112112 'react/react-in-jsx-scope' : 2 ,
113113 // Restrict file extensions that may be required
114114 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
115- 'react/require-extension' : [ 0 , { 'extensions' : [ '.jsx' ] } ] ,
115+ 'react/require-extension' : [ 0 , { 'extensions' : [ '.jsx' ] } ] ,
116116 // Prevent extra closing tags for components without children
117117 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
118118 'react/self-closing-comp' : 2 ,
0 commit comments