|
1 | 1 | {
|
| 2 | + "extends": ["eslint:recommended"], |
2 | 3 | "env": {
|
3 | 4 | "browser": true,
|
| 5 | + "commonjs": true, |
4 | 6 | "es6": true,
|
5 | 7 | "node": true
|
6 | 8 | },
|
7 |
| - "extends": "eslint:recommended", |
8 | 9 | "parser": "babel-eslint",
|
9 | 10 | "parserOptions": {
|
10 |
| - "sourceType": "module", |
11 |
| - "ecmaFeatures": { |
12 |
| - "jsx": true, |
13 |
| - "arrowFunctions": true, |
14 |
| - "forOf": true, |
15 |
| - "defaultParams": true, |
16 |
| - "destructuring": true, |
17 |
| - "objectLiteralShorthandProperties": true, |
18 |
| - "restParams": true, |
19 |
| - "spread": true |
20 |
| - } |
| 11 | + "experimentalDecorators": true, |
| 12 | + "sourceType": "module" |
21 | 13 | },
|
22 |
| - "plugins": ["react"], |
23 | 14 | "rules": {
|
24 |
| - "no-debugger": "off", |
25 |
| - "no-case-declarations": "warn", |
26 |
| - "no-empty": "warn", |
27 |
| - "no-extra-boolean-cast": "warn", |
28 |
| - "no-extra-semi": "warn", |
29 |
| - "no-redeclare": "warn", |
30 |
| - "no-regex-spaces": "warn", |
31 |
| - "no-self-assign": "warn", |
32 |
| - "no-sparse-arrays": "warn", |
33 |
| - "no-unreachable": "warn", |
34 |
| - "no-console": "off", |
35 |
| - "require-yield": "off", |
36 |
| - "array-bracket-spacing": "warn", |
37 |
| - "array-callback-return": "error", |
38 |
| - "arrow-spacing": "warn", |
39 |
| - "block-scoped-var": "error", |
40 |
| - "block-spacing": "warn", |
41 |
| - "comma-spacing": "warn", |
42 |
| - "comma-style": "warn", |
43 |
| - "computed-property-spacing": "warn", |
44 |
| - "consistent-return": "error", |
45 |
| - "consistent-this": ["warn", "that"], |
46 |
| - "curly": "warn", |
47 |
| - "default-case": "warn", |
48 |
| - "dot-notation": ["warn", { "allowPattern": "[$_0-9]" }], |
49 |
| - "eqeqeq": "error", |
50 |
| - "func-call-spacing": "error", |
51 |
| - "guard-for-in": "error", |
52 |
| - "handle-callback-err": "error", |
53 |
| - "key-spacing": "warn", |
54 |
| - "keyword-spacing": "warn", |
55 |
| - "linebreak-style": "warn", |
56 |
| - "new-parens": "warn", |
57 |
| - "no-array-constructor": "error", |
58 |
| - "no-caller": "error", |
59 |
| - "no-catch-shadow": "error", |
60 |
| - "no-confusing-arrow": "warn", |
61 |
| - "no-constant-condition": "warn", |
62 |
| - "no-div-regex": "warn", |
63 |
| - "no-eq-null": "error", |
64 |
| - "no-eval": "error", |
65 |
| - "no-extend-native": "error", |
66 |
| - "no-extra-bind": "warn", |
67 |
| - "no-extra-label": "error", |
68 |
| - "no-floating-decimal": "warn", |
69 |
| - "no-global-assign": "warn", |
70 |
| - "no-implicit-globals": "warn", |
71 |
| - "no-implied-eval": "error", |
72 |
| - "no-iterator": "error", |
73 |
| - "no-labels": "error", |
74 |
| - "no-label-var": "error", |
75 |
| - "no-loop-func": "error", |
76 |
| - "no-lone-blocks": "error", |
77 |
| - "no-native-reassign": "error", |
78 |
| - "no-mixed-operators": ["warn", { "groups": [["&&", "||"]] }], |
79 |
| - "no-mixed-requires": "error", |
80 |
| - "no-multi-spaces": "warn", |
81 |
| - "no-multi-str": "warn", |
82 |
| - "no-new-object": "warn", |
83 |
| - "no-new-require": "error", |
84 |
| - "no-new-wrappers": "warn", |
85 |
| - "no-octal-escape": "error", |
86 |
| - "no-path-concat": "error", |
87 |
| - "no-proto": "error", |
88 |
| - "no-script-url": "error", |
89 |
| - "no-sequences": "error", |
90 |
| - "no-self-compare": "error", |
91 |
| - "no-shadow": "error", |
92 |
| - "no-shadow-restricted-names": "error", |
93 |
| - "no-spaced-func": "warn", |
94 |
| - "no-template-curly-in-string": "error", |
95 |
| - "no-throw-literal": "warn", |
96 |
| - "no-undef": "error", |
97 |
| - "no-undef-init": "warn", |
98 |
| - "no-unneeded-ternary": "warn", |
99 |
| - "no-unsafe-negation": "warn", |
100 |
| - "no-unused-expressions": "error", |
101 |
| - "no-unused-vars": [ |
102 |
| - "warn", |
103 |
| - { |
104 |
| - "vars": "all", |
105 |
| - "varsIgnorePattern": "^(React)$", |
106 |
| - "args": "none" |
107 |
| - } |
108 |
| - ], |
109 |
| - "no-useless-call": "warn", |
110 |
| - "no-useless-computed-key": "warn", |
111 |
| - "no-useless-concat": "warn", |
112 |
| - "no-useless-constructor": "warn", |
113 |
| - "no-void": "error", |
114 |
| - "no-whitespace-before-property": "warn", |
115 |
| - "no-with": "error", |
116 |
| - "one-var-declaration-per-line": "warn", |
117 |
| - "prefer-spread": "warn", |
118 |
| - "quotes": ["warn", "single", "avoid-escape"], |
119 |
| - "radix": "error", |
120 |
| - "semi": "warn", |
121 |
| - "semi-spacing": "warn", |
122 |
| - "space-before-blocks": "warn", |
123 |
| - "space-before-function-paren": ["warn", "never"], |
124 |
| - "space-in-parens": "warn", |
125 |
| - "space-unary-ops": "warn", |
126 |
| - "spaced-comment": "warn", |
127 |
| - "yoda": "warn", |
128 |
| - "react/jsx-boolean-value": ["warn", "always"], |
129 |
| - "react/jsx-curly-spacing": "warn", |
130 |
| - "react/jsx-no-duplicate-props": "error", |
131 |
| - "react/jsx-no-undef": "error", |
132 |
| - "react/jsx-uses-react": "error", |
133 |
| - "react/jsx-uses-vars": "warn", |
134 |
| - "react/jsx-wrap-multilines": "warn", |
135 |
| - "react/no-did-mount-set-state": ["warn"], |
136 |
| - "react/no-did-update-set-state": ["warn"], |
137 |
| - "react/no-direct-mutation-state": "error", |
138 |
| - "react/no-unknown-property": "error", |
139 |
| - "react/prop-types": [ |
140 |
| - "warn", |
141 |
| - { "ignore": ["children", "className", "style"] } |
142 |
| - ], |
143 |
| - "react/react-in-jsx-scope": "error", |
144 |
| - "react/self-closing-comp": "warn" |
145 |
| - } |
| 15 | + "indent": ["error", 2, { |
| 16 | + "SwitchCase": 1 |
| 17 | + }], |
| 18 | + "no-console": "error", |
| 19 | + "no-unused-vars": "error", |
| 20 | + "prefer-let/prefer-let": 2, |
| 21 | + "semi": ["error", "always"], |
| 22 | + "space-before-function-paren": ["error", { |
| 23 | + "anonymous": "never", |
| 24 | + "named": "never", |
| 25 | + "asyncArrow": "always" |
| 26 | + }] |
| 27 | + }, |
| 28 | + "plugins": ["prefer-let"] |
146 | 29 | }
|
0 commit comments