-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.browser.json
89 lines (89 loc) · 2.71 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"root": true,
"env": {
"browser": true,
"node": true
},
"globals": {
"nodecg": "readonly",
"NodeCG": "readonly"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:vue/vue3-recommended"
],
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.browser.json"
},
"webpack": {
"config": "webpack.config.ts",
"config-index": 0
}
},
"import/extensions": [".js", ".ts"]
},
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"import/no-extraneous-dependencies": "off",
"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",
"@typescript-eslint/no-unused-vars": ["error", {
"varsIgnorePattern": "NodeCGBrowser"
}],
"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
}
}
}
],
"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/no-v-html": "off",
"vue/multi-word-component-names": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
}