This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc
93 lines (93 loc) · 2.15 KB
/
.eslintrc
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
90
91
92
93
{
"root": true,
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
"extends": ["plugin:vue/essential", "eslint:recommended"],
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module",
"allowImportExportEverywhere": false,
"ecmaVersion": 7
},
"rules": {
"no-debugger": "off",
"no-var": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"no-mixed-spaces-and-tabs": "error",
"no-undef": "error",
"no-extra-semi": "error",
"no-empty": "error",
"no-console": "off",
"semi": [2, "never"],
"indent": [
"warn",
2,
{
"SwitchCase": 1
}
],
"max-len": [
"warn",
{
"code": 160
}
],
"function-paren-newline": ["off"],
"object-property-newline": [
"warn",
{
"allowAllPropertiesOnSameLine": true
}
],
"newline-per-chained-call": [
"warn",
{
"ignoreChainWithDepth": 4
}
],
"curly": "error",
"comma-dangle": ["off", "always-multiline"],
"semi-style": ["warn", "last"],
"max-lines": ["error", 2000],
"max-lines-per-function": ["warn", 50],
"complexity": ["error", 20],
"max-depth": ["warn", 4],
"max-nested-callbacks": ["error", 4],
"no-multi-assign": "off",
"no-undef-init": "warn",
"no-shadow": "off",
"max-params": ["warn", 5],
"no-param-reassign": "off",
"prefer-rest-params": "off",
"prefer-arrow-callback": "error",
"arrow-body-style": ["warn", "as-needed"],
"no-this-before-super": "error",
"quotes": ["warn", "single"],
"prefer-template": "off",
"no-multi-str": "warn",
"object-shorthand": "warn",
"dot-notation": "error",
"accessor-pairs": "error",
"no-prototype-builtins": "error",
"guard-for-in": "error",
"eqeqeq": "off",
"no-negated-condition": "off",
"default-case": "off",
"no-fallthrough": "error",
"no-case-declarations": "error",
"no-unsafe-finally": "error",
"no-eval": "error",
"no-with": "error",
"no-implicit-coercion": [
"error",
{
"allow": ["!!", "~"]
}
]
}
}