|
1 | 1 | module.exports = { |
2 | | - "extends": "airbnb", |
3 | | - "plugins": [ |
4 | | - "react", |
5 | | - "jsx-a11y", |
6 | | - "import" |
7 | | - ], |
8 | | - "rules": { |
9 | | - "react/jsx-no-bind": 0, |
10 | | - "react/jsx-first-prop-new-line": 0, |
11 | | - "react/jsx-indent-props": 0, |
12 | | - "react/jsx-filename-extension": 0, |
13 | | - "react/react-in-jsx-scope": 0, // remove when import React is ready |
14 | | - "import/no-unresolved": 0, |
15 | | - "comma-dangle": 0, |
16 | | - "no-console": 0, |
17 | | - "arrow-parens": 0, |
18 | | - "react/jsx-no-undef": 0, |
19 | | - "react/jsx-tag-spacing": 0, |
20 | | - "react/prefer-stateless-function": 0, |
21 | | - "react/forbid-prop-types": 0, |
22 | | - "import/extensions": 0, |
23 | | - "quotes": 0, |
24 | | - "no-prototype-builtins": 0, |
25 | | - "class-methods-use-this": 0, |
26 | | - "no-param-reassign": 0, |
27 | | - "no-mixed-operators": 0, |
28 | | - "no-else-return": 0, |
29 | | - 'max-len': ['error', 120, 2, { |
30 | | - ignoreUrls: true, |
31 | | - ignoreComments: false, |
32 | | - ignoreRegExpLiterals: true, |
33 | | - ignoreStrings: true, |
34 | | - ignoreTemplateLiterals: true, |
35 | | - }] |
| 2 | + extends: 'airbnb', |
| 3 | + plugins: ['react', 'jsx-a11y', 'import'], |
| 4 | + rules: { |
| 5 | + 'react/jsx-no-bind': 0, |
| 6 | + 'react/jsx-first-prop-new-line': 0, |
| 7 | + 'react/jsx-indent-props': 0, |
| 8 | + 'react/jsx-filename-extension': 0, |
| 9 | + 'react/react-in-jsx-scope': 0, // remove when import React is ready |
| 10 | + 'import/no-unresolved': 0, |
| 11 | + 'react/jsx-props-no-spreading': 0, |
| 12 | + 'comma-dangle': 0, |
| 13 | + 'no-console': 0, |
| 14 | + 'no-plusplus': 0, |
| 15 | + 'import/prefer-default-export': 0, |
| 16 | + 'import/no-named-as-default': 0, |
| 17 | + 'import/no-named-as-default-member': 0, |
| 18 | + 'arrow-parens': 0, |
| 19 | + 'react/jsx-no-undef': 0, |
| 20 | + 'react/jsx-tag-spacing': 0, |
| 21 | + 'react/prefer-stateless-function': 0, |
| 22 | + 'react/forbid-prop-types': 0, |
| 23 | + 'react/prop-types': 0, |
| 24 | + 'import/extensions': 0, |
| 25 | + quotes: ['warn', 'single'], |
| 26 | + 'no-prototype-builtins': 0, |
| 27 | + 'class-methods-use-this': 0, |
| 28 | + 'no-param-reassign': 0, |
| 29 | + 'no-mixed-operators': 0, |
| 30 | + 'no-else-return': 0, |
| 31 | + 'max-len': [ |
| 32 | + 'error', |
| 33 | + 120, |
| 34 | + 2, |
| 35 | + { |
| 36 | + ignoreUrls: true, |
| 37 | + ignoreComments: false, |
| 38 | + ignoreRegExpLiterals: true, |
| 39 | + ignoreStrings: true, |
| 40 | + ignoreTemplateLiterals: true |
| 41 | + } |
| 42 | + ], |
| 43 | + 'no-trailing-spaces': ['error', { skipBlankLines: true }], |
| 44 | + 'react/sort-comp': [ |
| 45 | + 1, |
| 46 | + { |
| 47 | + order: ['static-methods', 'lifecycle', 'everything-else', 'render'] |
| 48 | + } |
| 49 | + ] |
36 | 50 | } |
37 | 51 | }; |
0 commit comments