|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + |
| 5 | + plugins: [ |
| 6 | + 'react' |
| 7 | + ], |
| 8 | + rules: { |
| 9 | + 'react/display-name': [2, { acceptTranspilerName: true }], |
| 10 | + 'react/forbid-prop-types': 1, |
| 11 | + 'react/jsx-boolean-value': 1, |
| 12 | + 'react/jsx-closing-bracket-location': 0, |
| 13 | + 'react/jsx-curly-spacing': 1, |
| 14 | + 'react/jsx-indent-props': [2, 2], |
| 15 | + 'react/jsx-max-props-per-line': 1, |
| 16 | + 'react/jsx-no-duplicate-props': 1, |
| 17 | + 'react/jsx-no-literals': 0, |
| 18 | + 'react/jsx-no-undef': 1, |
| 19 | + 'react/jsx-sort-prop-types': 1, |
| 20 | + 'react/jsx-sort-props': 0, |
| 21 | + 'react/jsx-uses-react': 1, |
| 22 | + 'react/jsx-uses-vars': 1, |
| 23 | + 'react/no-danger': 0, |
| 24 | + 'react/no-did-mount-set-state': 1, |
| 25 | + 'react/no-did-update-set-state': 1, |
| 26 | + 'react/no-direct-mutation-state': 1, |
| 27 | + 'react/no-multi-comp': 1, |
| 28 | + 'react/no-set-state': 0, |
| 29 | + 'react/no-unknown-property': 1, |
| 30 | + 'react/prop-types': 0, |
| 31 | + 'react/react-in-jsx-scope': 1, |
| 32 | + 'react/require-extension': 1, |
| 33 | + 'react/self-closing-comp': 1, |
| 34 | + 'react/sort-comp': 1, |
| 35 | + 'react/wrap-multilines': 1 |
| 36 | + } |
| 37 | + |
| 38 | +}; |
0 commit comments