-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
57 lines (57 loc) · 1.42 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"extends": [
"plugin:prettier/recommended",
"eslint:recommended"
],
"plugins": ["prettier"],
"env": {
"browser": true,
"node": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"rules": {
"prettier/prettier": "warn",
"eqeqeq": "error",
"prefer-const": "error",
"curly": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-constructor-return": "error",
"no-dupe-else-if": "warn",
"default-param-last": "warn",
"consistent-return": "warn",
"class-methods-use-this": "warn",
"no-eval": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "warn",
"no-lone-blocks": "error",
"camelcase": "warn",
"no-useless-return": "error",
"sort-keys": "warn",
"sort-imports": ["warn", { "ignoreDeclarationSort": true }],
"no-var": "error",
"object-shorthand": "error",
"prefer-destructuring": ["error", { "object": true, "array": false }],
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-arrow-callback": "error",
"no-mixed-operators": "error",
"no-plusplus": "error",
"require-await": "error",
"func-style": ["error", "expression"],
"no-else-return": "warn"
}
}