|
1 | 1 | module.exports = { |
2 | | - env: { |
| 2 | + env: { |
| 3 | + browser: true, |
| 4 | + es2021: true, |
| 5 | + }, |
| 6 | + extends: ["plugin:react/recommended", "airbnb", "airbnb/hooks"], |
| 7 | + plugins: ["react", "react-native", "prettier"], |
| 8 | + overrides: [ |
| 9 | + { |
| 10 | + env: { |
3 | 11 | node: true, |
4 | | - jest: true, |
5 | | - browser: true, |
6 | | - es2021: true, |
7 | | - }, |
8 | | - settings: { |
9 | | - react: { |
10 | | - version: 'detect', |
11 | | - }, |
12 | | - }, |
13 | | - extends: ['plugin:react/recommended', 'airbnb', 'airbnb/hooks', 'prettier'], |
14 | | - plugins: ['react', 'react-native'], |
15 | | - overrides: [ |
16 | | - { |
17 | | - env: { |
18 | | - node: true, |
19 | | - }, |
20 | | - files: ['.eslintrc.{js,cjs}'], |
21 | | - parserOptions: { |
22 | | - sourceType: 'script', |
23 | | - }, |
24 | | - }, |
25 | | - ], |
26 | | - parserOptions: { |
27 | | - ecmaVersion: 'latest', |
28 | | - sourceType: 'module', |
29 | | - }, |
30 | | - rules: { |
31 | | - 'import/no-extraneous-dependencies': 0, |
32 | | - 'lodash/import-scope': 0, |
33 | | - 'lodash/prefer-lodash-method': 0, |
34 | | - 'lodash/prefer-noop': 0, |
35 | | - 'import/prefer-default-export': 0, |
36 | | - 'react/prop-types': 0, |
37 | | - 'react/jsx-props-no-spreading': 0, |
38 | | - 'react/destructuring-assignment': 0, |
39 | | - 'react/static-property-placement': 0, |
40 | | - 'react/forbid-prop-types': 0, |
41 | | - 'react/no-arrow-function-lifecycle': 0, |
42 | | - 'react/no-unused-class-component-methods': 0, |
43 | | - 'react/jsx-filename-extension': 0, |
44 | | - 'arrow-body-style': 0, |
45 | | - 'default-param-last': 0, |
| 12 | + }, |
| 13 | + files: [".eslintrc.{js,cjs}"], |
| 14 | + parserOptions: { |
| 15 | + sourceType: "script", |
| 16 | + }, |
46 | 17 | }, |
| 18 | + ], |
| 19 | + parserOptions: { |
| 20 | + ecmaVersion: "latest", |
| 21 | + sourceType: "module", |
| 22 | + }, |
| 23 | + rules: { |
| 24 | + "arrow-body-style": 0, |
| 25 | + "comma-dangle": 0, |
| 26 | + "default-param-last": 0, |
| 27 | + "import/no-extraneous-dependencies": 0, |
| 28 | + "import/prefer-default-export": 0, |
| 29 | + "object-curly-newline": 0, |
| 30 | + "operator-linebreak": 0, |
| 31 | + "prettier/prettier": "error", |
| 32 | + "react/destructuring-assignment": 0, |
| 33 | + "react/forbid-prop-types": 0, |
| 34 | + "react/jsx-filename-extension": 0, |
| 35 | + "react/jsx-props-no-spreading": 0, |
| 36 | + "react/no-arrow-function-lifecycle": 0, |
| 37 | + "react/no-unused-class-component-methods": 0, |
| 38 | + "react/prop-types": 0, |
| 39 | + "react/static-property-placement": 0, |
| 40 | + }, |
47 | 41 | }; |
0 commit comments