-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.browser.json
74 lines (74 loc) · 2.42 KB
/
.eslintrc.browser.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
{
"root": true,
"env": {
"browser": true
},
"globals": {
"nodecg": "readonly",
"NodeCG": "readonly"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:vue/vue3-recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 12,
"sourceType": "module",
"project": ["src/graphics/tsconfig.json", "src/client-shared/tsconfig.json"],
"extraFileExtensions": [".vue"]
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"max-len": "off",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"linebreak-style": "off",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"object-curly-spacing": ["warn", "always", {
"objectsInObjects": true,
"arraysInObjects": false
}],
"curly": [1, "multi-line"],
"no-eq-null": "off",
"eqeqeq": ["error", "smart"],
"padding-line-between-statements": [
"error",
{ "blankLine": "never", "prev": "block-like", "next": "case" },
{ "blankLine": "never", "prev": "block-like", "next": "default" }
],
"no-unused-vars": "off",
"no-empty": ["error", { "allowEmptyCatch": true }],
"@typescript-eslint/ban-ts-comment": ["error", {
"ts-ignore": "allow-with-description"
}],
"space-before-blocks": ["error"],
"keyword-spacing": ["error"],
"@typescript-eslint/type-annotation-spacing": [
"error",
{
"before": false,
"after": true,
"overrides": {
"arrow": {
"before": true,
"after": true
}
}
}
],
"@typescript-eslint/no-floating-promises": ["error", { "ignoreIIFE": true }],
"@typescript-eslint/no-misused-promises": "off",
"operator-linebreak": ["error", "before"],
"eol-last": 2,
"quote-props": [2, "as-needed", {"numbers": true}],
"vue/html-indent": ["error", 4],
"vue/singleline-html-element-content-newline": "off",
"vue/multi-word-component-names": "off"
}
}