This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
83 lines (83 loc) · 1.83 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
79
80
81
82
83
{
"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-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-return": "warn",
"prefer-regex-literals": [
"error",
{
"disallowRedundantWrapping": true
}
],
"prettier/prettier": "error",
"semi": [
"error",
"always"
],
"yoda": [
"error",
"never",
{
"exceptRange": true
}
]
// TODO: Style
// TODO: ES6
}
}