forked from gcdsm12/filters
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
52 lines (52 loc) · 1.33 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
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"globals": {
"$": true,
"appUtil": true,
"ClipboardJS": true,
"dayjs": true,
"dayjses": true,
"echarts": true,
"Handsontable": true,
"jQuery": true,
"pageResources": true,
"tinycolor": true,
"toastr": true,
"Vue": true
},
"extends": "eslint:recommended",
"rules": {
"comma-dangle": ["warn", "always-multiline"],
"comma-spacing": ["warn"],
"curly": ["warn", "all"],
"eol-last": ["warn"],
"eqeqeq": ["warn", "smart"],
"func-call-spacing": ["warn", "never"],
"indent": ["warn", 2, {"SwitchCase": 1} ],
"linebreak-style": ["error", "unix"],
"new-parens": ["warn"],
"no-console": "off",
"no-constant-condition": "off",
"no-empty": ["warn"],
"no-implicit-coercion": ["warn"],
"no-irregular-whitespace": ["warn"],
"no-lonely-if": ["warn"],
"no-multi-spaces": ["warn"],
"no-trailing-spaces": ["warn"],
"no-unused-vars": ["warn"],
"quotes": ["warn", "single"],
"semi": ["error"],
"semi-spacing": ["warn"],
"space-infix-ops": ["warn", {"int32Hint": false}],
"spaced-comment": ["warn", "always", {"exceptions": ["/", "-", "+", "!"]}],
"unicode-bom": ["error", "never"]
}
}