@@ -10,9 +10,9 @@ 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 ,
13+ 'react/display-name' : [ 0 , { 'acceptTranspilerName' , false } ] ,
1414 // Forbid certain propTypes (any, array, object)
15- 'react/forbid-prop-types' : 0 ,
15+ 'react/forbid-prop-types' : [ 0 , { 'forbid' : [ 'any' , 'array' , 'object' ] } ] ,
1616 // Enforce boolean attributes notation in JSX
1717 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
1818 'react/jsx-boolean-value' : [ 2 , 'never' ] ,
@@ -21,29 +21,35 @@ module.exports = {
2121 'react/jsx-closing-bracket-location' : [ 2 , 'line-aligned' ] ,
2222 // Enforce or disallow spaces inside of curly braces in JSX attributes
2323 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
24- 'react/jsx-curly-spacing' : 0 ,
24+ 'react/jsx-curly-spacing' : [ 0 , 'never' , { 'allowMultiline' : true } ] ,
2525 // Validate props indentation in JSX
2626 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md
2727 'react/jsx-indent-props' : [ 2 , 2 ] ,
2828 // Limit maximum of props on a single line in JSX
29- 'react/jsx-max-props-per-line' : 0 ,
29+ 'react/jsx-max-props-per-line' : [ 0 , { 'maximum' : 1 } ] ,
3030 // Prevent usage of .bind() and arrow functions in JSX props
3131 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
3232 'react/jsx-no-bind' : 2 ,
3333 // Prevent duplicate props in JSX
3434 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
35- 'react/jsx-no-duplicate-props' : 0 ,
35+ 'react/jsx-no-duplicate-props' : [ 0 , { 'ignoreCase' : false } ] ,
3636 // Prevent usage of unwrapped JSX strings
3737 'react/jsx-no-literals' : 0 ,
3838 // Disallow undeclared variables in JSX
3939 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md
4040 'react/jsx-no-undef' : 2 ,
4141 // Enforce propTypes declarations alphabetical sorting
4242 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md
43- 'react/jsx-sort-prop-types' : 0 ,
43+ 'react/jsx-sort-prop-types' : [ 0 , {
44+ 'ignoreCase' : false ,
45+ 'callbacksLast' : false ,
46+ } ] ,
4447 // Enforce props alphabetical sorting
4548 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
46- 'react/jsx-sort-props' : 0 ,
49+ 'react/jsx-sort-props' : [ 0 , {
50+ 'ignoreCase' : false ,
51+ 'callbacksLast' : false ,
52+ } ] ,
4753 // Prevent React to be incorrectly marked as unused
4854 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md
4955 'react/jsx-uses-react' : [ 2 , { 'pragma' : 'React' } ] ,
@@ -83,7 +89,7 @@ module.exports = {
8389 'react/react-in-jsx-scope' : 2 ,
8490 // Restrict file extensions that may be required
8591 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
86- 'react/require-extension' : 0 ,
92+ 'react/require-extension' : [ 0 , { 'extensions' : [ '.jsx' ] } ] ,
8793 // Prevent extra closing tags for components without children
8894 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
8995 'react/self-closing-comp' : 2 ,
0 commit comments