forked from temporaryna/MixCloud-Play
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
41 lines (41 loc) · 1 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
{
"root": true,
"env": {
"browser": true,
"node": true,
"commonjs": true,
"amd": true,
"es6": true
},
"globals": {
"none": "readonly"
},
"settings": {
"import/core-modules": [ "electron" ]
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
"eol-last": ["error", "never"],
"no-trailing-spaces": "error",
"eqeqeq": ["warn", "smart"],
"default-case-last": "warn",
"no-empty-function": "error",
"no-cond-assign": ["error", "always"],
"no-script-url": "error",
"no-self-compare": "warn",
"no-multi-spaces": "warn",
"func-call-spacing": ["error", "never"],
"array-bracket-newline": "warn",
"keyword-spacing": ["error", { "before": true, "after": true }],
"space-before-function-paren": ["error", "never"],
"array-bracket-spacing": "warn"
}
}