@@ -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,28 +21,34 @@ 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 'react/jsx-no-bind' : 0 ,
3232 // Prevent duplicate props in JSX
3333 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
34- 'react/jsx-no-duplicate-props' : 0 ,
34+ 'react/jsx-no-duplicate-props' : [ 0 , { 'ignoreCase' : false } ] ,
3535 // Prevent usage of unwrapped JSX strings
3636 'react/jsx-no-literals' : 0 ,
3737 // Disallow undeclared variables in JSX
3838 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md
3939 'react/jsx-no-undef' : 2 ,
4040 // Enforce propTypes declarations alphabetical sorting
4141 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md
42- 'react/jsx-sort-prop-types' : 0 ,
42+ 'react/jsx-sort-prop-types' : [ 0 , {
43+ 'ignoreCase' : false ,
44+ 'callbacksLast' : false ,
45+ } ] ,
4346 // Enforce props alphabetical sorting
4447 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
45- 'react/jsx-sort-props' : 0 ,
48+ 'react/jsx-sort-props' : [ 0 , {
49+ 'ignoreCase' : false ,
50+ 'callbacksLast' : false ,
51+ } ] ,
4652 // Prevent React to be incorrectly marked as unused
4753 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md
4854 'react/jsx-uses-react' : [ 2 , { 'pragma' : 'React' } ] ,
@@ -82,7 +88,7 @@ module.exports = {
8288 'react/react-in-jsx-scope' : 2 ,
8389 // Restrict file extensions that may be required
8490 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
85- 'react/require-extension' : 0 ,
91+ 'react/require-extension' : [ 0 , { 'extensions' : [ '.jsx' ] } ] ,
8692 // Prevent extra closing tags for components without children
8793 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
8894 'react/self-closing-comp' : 2 ,
0 commit comments