This repository has been archived by the owner on Mar 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
94 lines (94 loc) · 2.64 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"globals": {
"angular": true
},
"rules": {
"camelcase": "error",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"object-curly-spacing": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"space-infix-ops": "error",
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"no-alert": "error",
"no-var": "error",
"no-new-object": "error",
"object-shorthand": ["error", "always"],
"no-array-constructor": "error",
"prefer-template": "error",
"template-curly-spacing": ["error", "never"],
"no-useless-escape": "error",
"no-loop-func": "error",
"prefer-rest-params": "error",
"no-new-func": "error",
"space-before-function-paren": ["error", "always"],
"space-before-blocks": ["error", "always"],
"no-param-reassign": ["error", {
"props": true
}],
"prefer-arrow-callback": ["error", {
"allowNamedFunctions": true,
"allowUnboundThis": true
}],
"arrow-spacing": ["error", {
"before": true,
"after": true
}],
"arrow-parens": ["error", "as-needed", {
"requireForBlockBody": true
}],
"arrow-body-style": ["error", "as-needed", {
"requireReturnForObjectLiteral": false
}],
"no-confusing-arrow": ["error", {
"allowParens": true
}],
"no-useless-constructor": "error",
"no-duplicate-imports": "error",
"no-iterator": "error",
"no-restricted-syntax": ["error", "WithStatement", "BinaryExpression[operator='in']"],
"dot-notation": "error",
"no-undef": "error",
"one-var": ["error", "never"],
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true
}],
"eqeqeq": ["error", "always"],
"spaced-comment": ["error", "always", {
"exceptions": ["-", "+"]
}],
"indent": ["error", 2],
"keyword-spacing": "error",
"eol-last": ["error", "always"],
"no-whitespace-before-property": "error",
"newline-per-chained-call": ["error", {
"ignoreChainWithDepth": 2
}],
"padded-blocks": ["error", "always"],
"space-in-parens": "error",
"max-len": ["error", 100],
"comma-style": ["error", "last"],
"comma-dangle": ["error", "always-multiline"]
}
}