-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
78 lines (76 loc) · 1.71 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
{
"overrides": [
{
"files": ["*.json", "*.json5", "*.jsonc"],
"parser": "jsonc-eslint-parser"
}
],
"rules": {
"complexity": "off",
"max-len":"off",
"max-params": [2, 4],
"max-statements":"off",
"max-depth": "off",
"max-nested-callbacks": "off",
"indent": [2, 2],
"linebreak-style": "off",
"space-before-function-paren": [2, "always"],
"curly": [2, "all"],
"brace-style": [2, "1tbs"],
"quotes": [1, "single", "avoid-escape"],
"eqeqeq": [2, "allow-null"],
"semi": [2, "always"],
"new-cap": 0,
"no-console": "off",
"no-empty": 0,
"no-unused-vars": 1,
"space-before-blocks": [2, "always"],
"keyword-spacing": [
2,
{
"before": true,
"after": true,
"overrides": {}
}
],
"no-trailing-spaces": [
2, {
"skipBlankLines": false
}
],
"cypress/no-unnecessary-waiting": "off",
"cypress/unsafe-to-chain-command": "off",
"eol-last": ["error", "never"],
"jsonc/array-bracket-newline": [
"error",
{
"multiline": true,
"minItems": null
}
],
"jsonc/object-property-newline": [
"error", {
"allowAllPropertiesOnSameLine": false
}
],
"jsonc/object-curly-newline": [
"error",
{
"multiline": true,
"minProperties": 1
}
],
"jsonc/array-bracket-spacing": ["error", "never"],
"jsonc/array-element-newline": ["error", "consistent"],
"jsonc/object-curly-spacing": 2,
"jsonc/indent": ["error", 2, {}]
},
"env": {
"node": true
},
"extends": [
"eslint:recommended",
"plugin:cypress/recommended",
"plugin:jsonc/recommended-with-json"
]
}