-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
91 lines (91 loc) · 2.6 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"root": true,
"extends": ["prettier"],
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "always",
"printWidth": 80,
"tabWidth": 4,
"semi": true,
"bracketSpacing": true
}
],
"newline-per-chained-call": "off",
"prefer-template": "error",
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"curly": ["error", "all"],
"no-restricted-globals": "off",
"no-restricted-syntax": [
"error",
"DebuggerStatement",
"LabeledStatement",
"WithStatement"
],
"import/prefer-default-export": "off",
"no-continue": "off",
"no-plusplus": "off",
"no-await-in-loop": "off",
"no-trailing-spaces": "warn",
"no-template-curly-in-string": "error",
"no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "[$]",
"args": "none"
}
],
"no-shadow": "off",
"import/no-named-as-default": "off",
"prefer-destructuring": [
"warn",
{
"VariableDeclarator": {
"object": true,
"array": false
},
"AssignmentExpression": {
"object": true,
"array": false
}
}
],
"no-console": "warn",
"getter-return": [
"warn",
{
"allowImplicit": true
}
],
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-extra-boolean-cast": "error",
"no-unreachable": "error",
"valid-typeof": "error",
"no-invalid-regexp": "error",
"no-invalid-this": "error",
"default-case": "warn",
"switch-colon-spacing": "error",
"eqeqeq": "warn",
"no-fallthrough": "error",
"no-implicit-coercion": "error",
"no-return-await": "error",
"require-await": "error",
"no-useless-return": "error",
"no-negated-condition": "warn",
"no-const-assign": "error",
"no-unneeded-ternary": "warn",
"no-useless-computed-key": "error"
},
"plugins": ["prettier"]
}