-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (44 loc) · 1.11 KB
/
.eslintrc
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
{
"extends": [
"eslint:recommended",
"standard",
],
"plugins": [
"node",
"jest"
],
"env": {
"node": true,
"jest": true
},
"settings": {
"lodash": {
"pragma": "_"
}
},
rules: {
"semi": ["error", "never"],
"quotes": ["error", "single"],
"prefer-const": "off",
"arrow-parens": ["error", "as-needed"],
"eqeqeq": ["warn", "always"],
"arrow-body-style": ["error", "as-needed"],
"prefer-spread": "error",
"prefer-rest-params": "warn",
"prefer-template": "error",
"no-duplicate-imports": "error",
"wrap-iife": "error",
"no-console": ["warn", { allow: ["warn", "error", "info"] }],
"no-unneeded-ternary": "error",
"one-var": ["error", "never"],
"no-empty": "off",
"no-implicit-coercion": ["error", { allow: ["!!", "~"] }],
"no-return-assign": "error",
"no-return-await": "error",
"object-shorthand": ["error", "always", { avoidExplicitReturnArrows: true }],
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/valid-expect": "error",
},
}