This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
49 lines (49 loc) · 1.54 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true
},
"globals": {
"Connection": false,
"cordova": false,
"device": false,
"esmaps": false,
"fetch": false,
"navigator": false,
"screen": false
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-body-style": ["error", "always"],
"arrow-spacing": ["error", {"before": true, "after": true}],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": ["error", {"before": false, "after": true}],
"computed-property-spacing": ["error", "never"],
"curly": ["error", "all"],
"eol-last": "error",
"eqeqeq": ["error", "allow-null"],
"indent": ["error", "tab"],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"linebreak-style": ["error", "unix"],
"max-len": ["error", {"code": 120, "ignoreUrls": true, "ignoreRegExpLiterals": true}],
"no-trailing-spaces": "error",
"no-var": "error",
"no-with": "error",
"object-curly-spacing": ["error", "never"],
"prefer-arrow-callback": "error",
"quote-props": ["error", "consistent-as-needed"],
"quotes": ["error", "single", "avoid-escape"],
"semi": "error",
"semi-spacing": ["error", {"before": false, "after": true}],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"space-before-blocks": "error",
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error"
}
}