-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
59 lines (59 loc) · 1.52 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
{
"env": {
"browser": true,
"node": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"globals": {
"Promise": true,
"ArrayBuffer": true,
"File": true,
"Blob": true,
"OSJS_VERSION": true,
"OSjs"
},
"extends": "eslint:recommended",
"rules": {
"eqeqeq": ["error", "always"],
"quotes": ["error", "single"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"indent": ["error", 2],
"radix": 1,
"eol-last": ["error", "always"],
"consistent-return": 1,
"space-in-parens": ["error", "never"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-before-blocks": ["error", "always"],
"space-infix-ops": ["error", {"int32Hint": false}],
"space-unary-ops": ["error", {"words": true, "nonwords": false}],
"spaced-comment": ["warn", "always"],
"prefer-arrow-callback": 1,
"prefer-spread": 1,
"prefer-rest-params": 1,
"template-curly-spacing": ["warn", "never"],
"no-multiple-empty-lines": ["error"],
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
"no-useless-constructor": 1,
"no-var": 2,
"no-duplicate-imports": 2,
"no-console": "off",
"no-extra-semi": 2,
"no-eval": 2,
"no-invalid-this": 1,
"no-new-func": 2,
"no-return-await": 1,
"no-self-compare": 2,
"no-with": 2,
"no-multi-assign": 1,
"no-new-object": 2,
"no-tabs": 1,
}
}