This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
/
.eslintrc.json
62 lines (57 loc) · 1.69 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "module"
},
"env": {
"browser": true,
"commonjs": true
},
"extends": "eslint:recommended",
"rules": {
"no-console": 0,
"array-callback-return": 2,
"curly": ["error", "all"],
"eqeqeq": ["error", "allow-null"],
"dot-notation": 2,
// style
"array-bracket-spacing": ["error", "never"],
// block-spacing?
"brace-style": ["error", "stroustrup"],
"camelcase": 2,
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": 2,
// consistent-this?
"eol-last": 2,
"indent": ["error", 4],
"key-spacing": ["error", {
"mode": "minimum"
}],
"keyword-spacing": 2,
// linebreak-style?
"max-len": ["warn", 80],
// other max-*?
"no-array-constructor": 2,
"no-inline-comments": 2,
"no-lonely-if": 2,
"no-multiple-empty-lines": 1,
"no-nested-ternary": 2,
"no-new-object": 2,
"no-plusplus": 2,
// no-restricted-syntax maybe? discourage `with`?
"no-trailing-spaces": 2, // !!!!!!!!!!!!!!!!!!!
"no-spaced-func": 2,
"no-unneeded-ternary": 2,
"no-whitespace-before-property": 2,
"object-curly-spacing": ["error", "always"],
// operator-linebreak? operator-assignment?
"quote-props": ["error", "as-needed"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"spaced-comment": ["error", "always", {
"markers": ["global"]
}]
}
}