|
2 | 2 | "root": true,
|
3 | 3 | "parser": "babel-eslint",
|
4 | 4 |
|
5 |
| - "plugins": [ |
6 |
| - "react" |
7 |
| - ], |
| 5 | + "plugins": ["react"], |
8 | 6 |
|
9 |
| - "extends": [ |
10 |
| - "eslint:recommended", |
11 |
| - "plugin:react/recommended" |
12 |
| - ], |
| 7 | + "extends": ["eslint:recommended", "plugin:react/recommended", "prettier", "prettier/react"], |
13 | 8 |
|
14 | 9 | "rules": {
|
15 | 10 | "semi": ["error", "always"],
|
16 | 11 | "keyword-spacing": "error",
|
17 | 12 | "space-infix-ops": "error",
|
18 | 13 | "space-before-blocks": "error",
|
19 | 14 | "array-bracket-spacing": ["error", "never"],
|
20 |
| - "brace-style": ["error", "1tbs", { "allowSingleLine": true }], |
| 15 | + "brace-style": ["error", "1tbs", {"allowSingleLine": true}], |
21 | 16 | "comma-spacing": ["error", {"before": false, "after": true}],
|
22 | 17 | "computed-property-spacing": ["error", "never"],
|
23 | 18 | "eol-last": "error",
|
24 |
| - "indent": ["error", 2, { "SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }], |
| 19 | + "indent": ["error", 2, {"SwitchCase": 1, "VariableDeclarator": {"var": 2, "let": 2, "const": 3}}], |
25 | 20 | "no-case-declarations": "off",
|
26 |
| - "no-console": [1, { "allow": ["warn", "error", "info"] }], |
| 21 | + "no-console": [1, {"allow": ["warn", "error", "info"]}], |
27 | 22 | "no-else-return": "error",
|
28 | 23 | "no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
|
29 | 24 | "no-trailing-spaces": "error",
|
|
33 | 28 | "no-unused-vars": ["error", {"varsIgnorePattern": "ReactDOM"}],
|
34 | 29 | "react/display-name": "off",
|
35 | 30 | // disabling for now since there are too many components without PropTypes
|
36 |
| - "react/prop-types": "off" |
| 31 | + "react/prop-types": "off" |
37 | 32 | },
|
38 | 33 |
|
39 | 34 | "parserOptions": {
|
|
84 | 79 | "prettyPrint": true,
|
85 | 80 | "jest": true
|
86 | 81 | }
|
87 |
| - |
88 | 82 | }
|
0 commit comments