|
1 | 1 | module.exports = { |
2 | | - env: { |
3 | | - es6: true, |
4 | | - node: true, |
5 | | - browser: true |
6 | | - }, |
7 | | - parser: "babel-eslint", |
8 | | - parserOptions: { |
9 | | - ecmaFeatures: { |
10 | | - experimentalObjectRestSpread: true, |
11 | | - jsx: true |
12 | | - }, |
13 | | - sourceType: "module" |
14 | | - }, |
15 | | - plugins: ["react", "prettier"], |
16 | | - extends: [ |
17 | | - "eslint:recommended", |
18 | | - "airbnb", |
19 | | - "plugin:react/recommended", |
20 | | - "prettier", |
21 | | - "prettier/react" |
22 | | - ], |
23 | | - globals: { |
24 | | - __DEV__: true |
25 | | - }, |
| 2 | + "extends": "react-app", |
26 | 3 | rules: { |
27 | | - "prettier/prettier": ["error", { printWidth: 110, singleQuote: true }], |
28 | | - "no-invalid-this": "off", |
29 | | - "no-return-assign": "off", |
30 | | - "no-param-reassign": "off", |
31 | | - "no-nested-ternary": "off", |
32 | | - "react/require-default-props": "off", |
33 | | - "react/jsx-filename-extension": ["error", { extensions: [".js"] }], |
34 | | - "react/prop-types": [2, { ignore: ["style", "children", "dispatch"] }], |
35 | | - "import/order": ["error", { "newlines-between": "always" }], |
36 | | - "import/prefer-default-export": "off", |
37 | | - "import/no-unresolved": "error", |
38 | | - "import/extensions": ["error", { js: "never" }], |
39 | | - "import/named": "error", |
40 | | - "import/default": "error", |
41 | | - "import/namespace": "error", |
42 | | - "import/no-absolute-path": "error", |
43 | | - "linebreak-style": 0, |
44 | 4 | "jsx-a11y/href-no-hash": "off" |
45 | 5 | } |
46 | 6 | }; |
0 commit comments