|
1 | | -module.exports = { |
2 | | - env: { |
3 | | - browser: true, |
4 | | - es2021: true, |
5 | | - }, |
6 | | - extends: ["airbnb", "prettier"], |
7 | | - plugins: ["prettier"], |
8 | | - overrides: [ |
9 | | - { |
10 | | - env: { |
11 | | - node: true, |
12 | | - }, |
13 | | - files: [".eslintrc.{js,cjs}"], |
14 | | - parserOptions: { |
15 | | - sourceType: "script", |
16 | | - }, |
17 | | - }, |
18 | | - ], |
19 | | - parserOptions: { |
20 | | - ecmaVersion: "latest", |
21 | | - sourceType: "module", |
22 | | - }, |
23 | | - rules: { |
24 | | - quotes: ["error", "double", { avoidEscape: true }], |
25 | | - "no-shadow": "off", |
26 | | - "react/jsx-uses-react": ["off"], |
27 | | - "react/react-in-jsx-scope": ["off"], |
28 | | - "no-unused-vars": [ |
29 | | - "error", |
30 | | - { vars: "all", args: "after-used", ignoreRestSiblings: false }, |
31 | | - ], |
32 | | - "react/jsx-pascal-case": ["error", { allowAllCaps: true }], |
33 | | - "no-console": "error", |
34 | | - "import/no-extraneous-dependencies": ["error", { devDependencies: true }], |
35 | | - "prettier/prettier": "off", |
36 | | - }, |
37 | | -}; |
| 1 | +module.exports = { |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es2021: true, |
| 5 | + }, |
| 6 | + extends: ["airbnb", "prettier"], |
| 7 | + plugins: ["prettier"], |
| 8 | + overrides: [ |
| 9 | + { |
| 10 | + env: { |
| 11 | + node: true, |
| 12 | + }, |
| 13 | + files: [".eslintrc.{js,cjs}"], |
| 14 | + parserOptions: { |
| 15 | + sourceType: "script", |
| 16 | + }, |
| 17 | + }, |
| 18 | + ], |
| 19 | + parserOptions: { |
| 20 | + ecmaVersion: "latest", |
| 21 | + sourceType: "module", |
| 22 | + }, |
| 23 | + rules: { |
| 24 | + quotes: ["error", "double", { avoidEscape: true }], |
| 25 | + "no-shadow": "off", |
| 26 | + "react/jsx-uses-react": ["off"], |
| 27 | + "react/react-in-jsx-scope": ["off"], |
| 28 | + "no-unused-vars": [ |
| 29 | + "error", |
| 30 | + { vars: "all", args: "after-used", ignoreRestSiblings: false }, |
| 31 | + ], |
| 32 | + "react/jsx-pascal-case": ["error", { allowAllCaps: true }], |
| 33 | + "no-console": "error", |
| 34 | + "import/no-extraneous-dependencies": ["error", { devDependencies: true }], |
| 35 | + }, |
| 36 | +}; |
0 commit comments