|
1 | 1 | module.exports = {
|
2 |
| - extends: ['react-app', 'plugin:prettier/recommended'], |
3 |
| - overrides: [ |
4 |
| - { |
5 |
| - files: ["**/*.js?(x)"], |
6 |
| - rules: { |
7 |
| - 'arrow-body-style': [2, 'as-needed'], |
8 |
| - 'import/prefer-default-export': 0, |
9 |
| - 'no-underscore-dangle': 0, |
10 |
| - 'react/jsx-props-no-spreading': 0, |
11 |
| - 'no-console': ['error', { allow: ['warn', 'error'] }], |
12 |
| - 'react/forbid-prop-types': [ |
13 |
| - 'error', |
14 |
| - { |
15 |
| - forbid: ['any', 'array'], |
16 |
| - checkContextTypes: true, |
17 |
| - checkChildContextTypes: true, |
18 |
| - }, |
19 |
| - ], |
20 |
| - 'react/no-danger': 0, |
| 2 | + parser: '@babel/eslint-parser', |
| 3 | + extends: ['airbnb', 'plugin:prettier/recommended'], |
| 4 | + env: { |
| 5 | + es6: true, |
| 6 | + node: true, |
| 7 | + jest: true, |
| 8 | + browser: true, |
| 9 | + }, |
| 10 | + parserOptions: { |
| 11 | + ecmaVersion: 6, |
| 12 | + sourceType: 'module', |
| 13 | + ecmaFeatures: { |
| 14 | + jsx: true, |
| 15 | + }, |
| 16 | + }, |
| 17 | + rules: { |
| 18 | + 'arrow-body-style': [2, 'as-needed'], |
| 19 | + 'import/prefer-default-export': 0, |
| 20 | + 'no-underscore-dangle': 0, |
| 21 | + 'react/jsx-props-no-spreading': 0, |
| 22 | + 'no-console': ['error', { allow: ['warn', 'error'] }], |
| 23 | + 'react/forbid-prop-types': [ |
| 24 | + 'error', |
| 25 | + { |
| 26 | + forbid: ['any', 'array'], |
| 27 | + checkContextTypes: true, |
| 28 | + checkChildContextTypes: true, |
21 | 29 | },
|
22 |
| - } |
23 |
| - ] |
| 30 | + ], |
| 31 | + 'react/no-danger': 0, |
| 32 | + }, |
24 | 33 | };
|
0 commit comments