forked from LSS-Manager/LSSM-V.4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
78 lines (78 loc) · 2.53 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"plugins": ["vue", "prettier", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/essential"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"process": "readonly",
"__dirname": "readonly",
"PREFIX": "readonly"
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"array-callback-return": ["error"],
"block-scoped-var": "warn",
"curly": ["error", "multi-or-nest", "consistent"],
"default-case-last": "error",
"guard-for-in": "error",
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-eval": "error",
"no-floating-decimal": "warn",
"no-loop-func": "error",
"no-loss-of-precision": "error",
// "no-magic-numbers": ["warn", {
// "ignoreArrayIndexes": true,
// "ignoreDefaultValues": true,
// "enforceConst": true
// }],
"no-multi-str": "warn",
"no-param-reassign": "error",
"no-prototype-builtins": "off",
"no-self-compare": "error",
"no-sequences": "error",
"no-template-curly-in-string": "warn",
"no-unmodified-loop-condition": "error",
"no-unreachable-loop": "error",
"no-unsafe-optional-chaining": "error",
"no-unused-expressions": "error",
"no-useless-concat": "warn",
"no-useless-rename": "error",
"no-useless-return": "warn",
"no-var": "error",
"object-shorthand": ["error", "always", { "avoidQuotes": true }],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-regex-literals": ["error", {
"disallowRedundantWrapping": true
}],
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"prettier/prettier": "error",
"semi": ["error", "always"],
"sort-imports": ["error", {
"allowSeparatedGroups": true,
"ignoreCase": true,
"memberSyntaxSortOrder": ["none", "all", "single", "multiple"]
}],
"template-curly-spacing": "error",
"vue/no-unused-refs": "warn",
"yoda": ["error", "never", {
"exceptRange": true
}]
// TODO: Style
}
}