@@ -10,7 +10,7 @@ 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)
1515 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/forbid-prop-types.md
1616 'react/forbid-prop-types' : [ 0 , { 'forbid' : [ 'any' , 'array' , 'object' ] } ] ,
@@ -22,7 +22,7 @@ module.exports = {
2222 'react/jsx-closing-bracket-location' : [ 2 , 'line-aligned' ] ,
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 ,
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 , {
@@ -43,7 +43,7 @@ module.exports = {
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 ,
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 ,
@@ -55,13 +55,19 @@ module.exports = {
5555 'react/jsx-pascal-case' : 0 ,
5656 // Enforce propTypes declarations alphabetical sorting
5757 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-prop-types.md
58- 'react/jsx-sort-prop-types' : 0 ,
58+ 'react/jsx-sort-prop-types' : [ 0 , {
59+ 'ignoreCase' : false ,
60+ 'callbacksLast' : false ,
61+ } ] ,
5962 // Enforce props alphabetical sorting
6063 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
61- 'react/jsx-sort-props' : 0 ,
64+ 'react/jsx-sort-props' : [ 0 , {
65+ 'ignoreCase' : false ,
66+ 'callbacksLast' : false ,
67+ } ] ,
6268 // Prevent React to be incorrectly marked as unused
6369 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md
64- 'react/jsx-uses-react' : 2 ,
70+ 'react/jsx-uses-react' : [ 2 , { 'pragma' : 'React' } ] ,
6571 // Prevent variables used in JSX to be incorrectly marked as unused
6672 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md
6773 'react/jsx-uses-vars' : 2 ,
@@ -85,7 +91,7 @@ module.exports = {
8591 'react/no-is-mounted' : 2 ,
8692 // Prevent multiple component definition per file
8793 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
88- 'react/no-multi-comp' : 2 ,
94+ 'react/no-multi-comp' : [ 2 , { 'ignoreStateless' : false } ] ,
8995 // Prevent usage of setState
9096 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-set-state.md
9197 'react/no-set-state' : 0 ,
@@ -100,13 +106,13 @@ module.exports = {
100106 'react/prefer-es6-class' : [ 2 , 'always' ] ,
101107 // Prevent missing props validation in a React component definition
102108 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
103- 'react/prop-types' : 2 ,
109+ 'react/prop-types' : [ 2 , { 'ignore' : [ ] , customValidators : [ ] } ] ,
104110 // Prevent missing React when using JSX
105111 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md
106112 'react/react-in-jsx-scope' : 2 ,
107113 // Restrict file extensions that may be required
108114 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
109- 'react/require-extension' : 0 ,
115+ 'react/require-extension' : [ 0 , { 'extensions' : [ '.jsx' ] } ] ,
110116 // Prevent extra closing tags for components without children
111117 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
112118 'react/self-closing-comp' : 2 ,
0 commit comments