-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc.json
64 lines (64 loc) · 1.4 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
{
"root": true,
"extends": [
"wikimedia/selenium",
"wikimedia/language/es2019",
"@wmde/wikimedia-typescript"
],
"ignorePatterns": [
"**/results/result.json",
"!.github/**/**",
"!deploy",
"package-lock.json",
"pnpm/**/**",
"pnpm-lock.yaml",
"*.properties"
],
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaVersion": "latest"
},
"rules": {
"mocha/no-setup-in-describe": "warn",
"node/no-missing-import": "off",
"wdio/no-pause": "warn",
"es-x/no-import-meta": "off",
"es-x/no-nullish-coalescing-operators": "off",
"es-x/no-class-fields": "off",
"no-mixed-spaces-and-tabs": [ "error", "smart-tabs" ],
"eol-last": [ "error", "always" ]
},
"overrides": [
{
"files": [ "*.json" ],
"rules": {
"array-bracket-spacing": "off",
"quotes": "off",
"quote-props": [ "error", "consistent" ],
"@typescript-eslint/semi": "off",
"no-unused-expressions": "off"
}
},
{
"files": [ "*.yaml", "*.yml" ],
"parser": "yaml-eslint-parser",
"rules": {
"max-len": "off",
"spaced-comment": "off",
"yml/block-sequence": 1,
"yml/no-empty-mapping-value": 1,
"yml/plain-scalar": 1
}
},
{
"files": [ "docker-compose*.yaml", "docker-compose*.yml" ],
"parser": "yaml-eslint-parser",
"rules": {
"yml/indent": 1,
"yml/no-empty-mapping-value": "off",
"yml/plain-scalar": "off"
}
}
]
}