|
1 | 1 | { |
2 | | - "parserOptions": { |
3 | | - "ecmaFeatures": { |
4 | | - "jsx": true |
5 | | - } |
6 | | - }, |
7 | | - "parser": "babel-eslint", |
8 | | - "extends": "airbnb", |
9 | | - "plugins": ["react", "jsx-a11y", "import"], |
10 | | - "env": { |
11 | | - "browser": true, |
12 | | - "node": true, |
13 | | - "jest": true, |
14 | | - "es6": true |
15 | | - }, |
| 2 | + "extends": ["react-app", "plugin:prettier/recommended"], |
16 | 3 | "rules": { |
17 | | - "arrow-parens": [2, "as-needed"], |
18 | | - "comma-dangle": ["warn", "never"], |
19 | | - "global-require": 0, |
20 | | - "import/no-extraneous-dependencies": [ |
21 | | - 2, |
22 | | - { |
23 | | - "devDependencies": true |
24 | | - } |
25 | | - ], |
26 | | - "import/no-named-as-default": 0, |
27 | | - "import/prefer-default-export": 0, |
28 | | - "linebreak-style": 0, |
29 | | - "max-len": [ |
30 | | - 1, |
31 | | - 150, |
32 | | - 2, |
33 | | - { |
34 | | - "ignoreComments": true, |
35 | | - "ignoreTrailingComments": true, |
36 | | - "ignoreTemplateLiterals": true, |
37 | | - "ignoreStrings": true |
38 | | - } |
39 | | - ], |
40 | | - "no-nested-ternary": 0, |
41 | | - "no-underscore-dangle": 0, |
42 | | - "no-console": 2, |
43 | | - "no-bitwise": [ |
44 | | - 2, |
45 | | - { |
46 | | - "allow": ["~"] |
47 | | - } |
48 | | - ], |
49 | | - "no-param-reassign": 0, |
50 | | - "no-plusplus": 0, |
51 | | - "no-shadow": 0, |
52 | | - "no-unused-expressions": [2, { "allowShortCircuit": true }], |
53 | | - "object-curly-newline": 0, |
54 | | - "react/forbid-prop-types": 0, |
55 | | - "react/require-default-props": 0, |
| 4 | + "prettier/prettier": ["error"], |
56 | 5 | "react/jsx-filename-extension": [ |
57 | 6 | 1, |
58 | 7 | { |
59 | 8 | "extensions": [".js", ".jsx"] |
60 | 9 | } |
61 | | - ], |
62 | | - "react/jsx-wrap-multilines": 0, |
63 | | - "react/jsx-closing-tag-location": 0, |
64 | | - "react/sort-comp": 0, |
65 | | - "semi": [2, "never"], |
66 | | - "space-infix-ops": 0, |
67 | | - "jsx-a11y/anchor-is-valid": 0, |
68 | | - "jsx-a11y/label-has-for": 0, |
69 | | - "jsx-a11y/no-static-element-interactions": 0, |
70 | | - "jsx-a11y/click-events-have-key-events": 0 |
71 | | - }, |
72 | | - "globals": { |
73 | | - "document": true |
| 10 | + ] |
74 | 11 | } |
75 | 12 | } |
0 commit comments