|
1 | 1 | module.exports = { |
2 | 2 | extends: 'airbnb', |
3 | | - plugins: [ |
4 | | - 'react', |
5 | | - 'jest' |
6 | | - ], |
| 3 | + plugins: ['react', 'jest'], |
7 | 4 | env: { |
8 | | - "jest/globals": true |
| 5 | + 'jest/globals': true, |
9 | 6 | }, |
10 | 7 | parser: 'babel-eslint', |
11 | 8 | rules: { |
12 | | - "no-new-func": "warn", |
13 | | - "jest/no-disabled-tests": "warn", |
14 | | - "jest/no-focused-tests": "error", |
15 | | - "jest/no-identical-title": "error", |
16 | | - "jest/valid-expect": "error", |
17 | | - |
18 | | - "react/forbid-prop-types": "warn", |
19 | | - "react/prop-types": "off", |
20 | | - "react/require-default-props": "off", |
21 | | - "react/no-unused-prop-types": "off", |
| 9 | + 'no-new-func': 'warn', |
| 10 | + 'jest/no-disabled-tests': 'warn', |
| 11 | + 'jest/no-focused-tests': 'error', |
| 12 | + 'jest/no-identical-title': 'error', |
| 13 | + 'jest/valid-expect': 'error', |
22 | 14 |
|
| 15 | + 'react/forbid-prop-types': 'warn', |
| 16 | + 'react/prop-types': 'off', |
| 17 | + 'react/require-default-props': 'off', |
| 18 | + 'react/no-unused-prop-types': 'off', |
| 19 | + 'no-param-reassign': 0, |
23 | 20 | 'no-console': 0, |
24 | 21 | 'new-cap': 0, |
25 | 22 | 'no-underscore-dangle': 0, |
26 | 23 | 'no-use-before-define': 0, |
27 | | - 'max-len': ["error", 180], |
| 24 | + 'max-len': ['error', 180], |
28 | 25 | 'import/no-unresolved': [ |
29 | 26 | 2, |
30 | 27 | { |
31 | | - ignore: [ |
32 | | - '^react$', |
33 | | - '^react-native$', |
34 | | - '^react-native/', |
35 | | - ], |
| 28 | + ignore: ['^react$', '^react-native$', '^react-native/'], |
36 | 29 | }, |
37 | 30 | ], |
38 | | - "import/no-cycle": "warn", |
39 | | - "import/no-self-import": "warn", |
| 31 | + 'import/no-cycle': 'warn', |
| 32 | + 'import/no-self-import': 'warn', |
40 | 33 | 'react/jsx-filename-extension': [ |
41 | 34 | 1, |
42 | 35 | { |
43 | | - extensions: [ |
44 | | - '.js', |
45 | | - '.jsx', |
46 | | - ], |
| 36 | + extensions: ['.js', '.jsx'], |
47 | 37 | }, |
48 | 38 | ], |
49 | 39 | 'import/no-extraneous-dependencies': [ |
50 | 40 | 'error', |
51 | 41 | { |
52 | | - 'devDependencies': true, |
53 | | - } |
| 42 | + devDependencies: true, |
| 43 | + }, |
54 | 44 | ], |
55 | 45 | 'no-bitwise': [ |
56 | 46 | 'error', |
57 | 47 | { |
58 | | - 'allow': ['^'], |
| 48 | + allow: ['^'], |
59 | 49 | }, |
60 | 50 | ], |
61 | | - 'no-restricted-syntax': [ |
62 | | - 'error', |
63 | | - 'ForInStatement', |
64 | | - 'LabeledStatement', |
65 | | - 'WithStatement', |
66 | | - ], |
| 51 | + 'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'], |
67 | 52 | }, |
68 | 53 | settings: { |
69 | 54 | 'import/resolver': { |
70 | 55 | node: { |
71 | | - extensions: [ |
72 | | - '.js', |
73 | | - '.android.js', |
74 | | - '.ios.js', |
75 | | - ], |
| 56 | + extensions: ['.js', '.android.js', '.ios.js'], |
76 | 57 | }, |
77 | 58 | }, |
78 | 59 | node: true, |
|
0 commit comments