|
1 | 1 | {
|
2 | 2 | "extends": ["eslint:recommended", "prettier"],
|
3 | | - "parser": "babel-eslint", |
| 3 | + "parser": "@babel/eslint-parser", |
4 | 4 | "parserOptions": {
|
5 | | - "ecmaVersion": 6, |
| 5 | + "ecmaVersion": 13, |
6 | 6 | "sourceType": "module",
|
7 | 7 | "ecmaFeatures": {
|
8 | 8 | "arrowFunctions": true,
|
|
15 | 15 | "modules": true,
|
16 | 16 | "templateStrings": true,
|
17 | 17 | "jsx": true
|
| 18 | + }, |
| 19 | + "babelOptions": { |
| 20 | + "presets": ["@babel/preset-react"] |
18 | 21 | }
|
19 | 22 | },
|
20 | 23 | "settings": {
|
|
25 | 28 | },
|
26 | 29 | "env": {
|
27 | 30 | "browser": true,
|
28 | | - "es6": true, |
| 31 | + "es2021": true, |
29 | 32 | "jasmine": true,
|
30 | 33 | "jest": true,
|
31 | 34 | "node": true
|
32 | 35 | },
|
33 | 36 | "globals": {
|
34 | 37 | "jest": true
|
35 | 38 | },
|
36 | | - "plugins": [ |
37 | | - "react", |
38 | | - "import", |
39 | | - "react-percy" |
40 | | - ], |
| 39 | + "plugins": ["react", "import", "react-percy", "jsx"], |
41 | 40 | "overrides": [
|
42 | 41 | {
|
43 | | - "files": [ |
44 | | - "**/*.percy.{js,jsx}" |
45 | | - ], |
| 42 | + "files": ["**/*.percy.{js,jsx}"], |
46 | 43 | "env": {
|
47 | 44 | "react-percy/globals": true
|
48 | 45 | }
|
|
120 | 117 | "react/prop-types": "error",
|
121 | 118 | "valid-jsdoc": ["error"],
|
122 | 119 | "yoda": ["error"],
|
123 | | - "spaced-comment": ["error", "always", { |
124 | | - "block": { |
125 | | - "exceptions": ["*"] |
| 120 | + "spaced-comment": [ |
| 121 | + "error", |
| 122 | + "always", |
| 123 | + { |
| 124 | + "block": { |
| 125 | + "exceptions": ["*"] |
| 126 | + } |
126 | 127 | }
|
127 | | - }], |
128 | | - "no-unused-vars": ["error", { |
| 128 | + ], |
| 129 | + "no-unused-vars": [ |
| 130 | + "error", |
| 131 | + { |
129 | 132 | "args": "after-used",
|
130 | 133 | "argsIgnorePattern": "^_",
|
131 | 134 | "caughtErrorsIgnorePattern": "^e$"
|
132 | | - }], |
133 | | - "no-magic-numbers": ["error", { |
134 | | - "ignoreArrayIndexes": true, |
| 135 | + } |
| 136 | + ], |
| 137 | + "no-magic-numbers": [ |
| 138 | + "error", |
| 139 | + { |
| 140 | + "ignoreArrayIndexes": true, |
135 | 141 | "ignore": [-1, 0, 1, 2, 3, 100, 10, 0.5]
|
136 | | - }], |
| 142 | + } |
| 143 | + ], |
137 | 144 | "no-underscore-dangle": ["off"]
|
138 | 145 | }
|
139 | 146 | }
|
0 commit comments