|
1 | 1 | module.exports = {
|
2 |
| - "extends": "airbnb", |
3 |
| - "parser": "babel-eslint", |
4 |
| - "plugins": [ |
5 |
| - "react", |
6 |
| - "jsx-a11y", |
7 |
| - "import" |
8 |
| - ], |
9 |
| - "env": { |
10 |
| - "node": true, |
11 |
| - "browser": true |
12 |
| - }, |
13 |
| - "rules": { |
14 |
| - "react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }], |
15 |
| - "react/require-extension": 0, |
16 |
| - "arrow-body-style": [2, "as-needed"], |
17 |
| - "react/no-did-mount-set-state": 0, |
18 |
| - "import/no-mutable-exports": 0, |
19 |
| - "import/no-extraneous-dependencies": 0, |
20 |
| - "no-console": 0, |
21 |
| - "strict": 0, |
22 |
| - "new-cap": [2, {"capIsNewExceptions": ["Router"]}], |
23 |
| - "import/extensions": 0, |
24 |
| - "import/prefer-default-export": 0 |
25 |
| - } |
| 2 | + "extends": "airbnb", |
| 3 | + "parserOptions": { |
| 4 | + "parser": '@babel/eslint-parser', |
| 5 | + "requireConfigFile": false, |
| 6 | + }, |
| 7 | + "plugins": [ |
| 8 | + "react", |
| 9 | + "jsx-a11y", |
| 10 | + "import" |
| 11 | + ], |
| 12 | + "env": { |
| 13 | + "node": true, |
| 14 | + "browser": true |
| 15 | + }, |
| 16 | + "rules": { |
| 17 | + "react/jsx-filename-extension": [0, { "extensions": [".js", ".jsx"] }], |
| 18 | + "react/require-extension": 0, |
| 19 | + "arrow-body-style": [2, "as-needed"], |
| 20 | + "react/no-did-mount-set-state": 0, |
| 21 | + "import/no-mutable-exports": 0, |
| 22 | + "import/no-extraneous-dependencies": 0, |
| 23 | + "no-console": 0, |
| 24 | + "strict": 0, |
| 25 | + "new-cap": [2, { "capIsNewExceptions": ["Router"] }], |
| 26 | + "import/extensions": 0, |
| 27 | + "import/prefer-default-export": 0 |
| 28 | + } |
26 | 29 | }
|
0 commit comments