forked from meltwater/awsudo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
112 lines (107 loc) · 2.3 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
// http://eslint.org/docs/rules/
"env": {
"node": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"extends": "eslint:recommended",
"rules": {
"valid-jsdoc": "error",
"default-case": "error",
"id-length": [
"error",
{
"min": 2,
"exceptions": ["id"]
}
],
"no-alert": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-magic-numbers": [
"error",
{
"ignore": [0, 1, 2]
}
],
"no-param-reassign": "error",
"no-prototype-builtins": "off",
"no-return-assign": ["error", "always"],
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-void": "error",
"no-with": "error",
/**
* Stylistic rules
*/
"camelcase": "error",
"complexity": "error",
"curly": [
"error",
"all"
],
"max-depth": [
"error",
3 // http://eslint.org/docs/rules/max-depth
],
"new-cap": "error",
"new-parens": "error",
"no-continue": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"no-nested-ternary": "error",
"no-tabs": "error",
"no-trailing-spaces": [
"error",
{
"ignoreComments": true,
"skipBlankLines": true
}
],
"no-unneeded-ternary": "error",
"nonblock-statement-body-position": [
"error",
"beside" // http://eslint.org/docs/rules/nonblock-statement-body-position
],
"one-var-declaration-per-line": [
"error",
"always"
],
"semi": [
"error",
"always"
],
"vars-on-top": "error",
/**
* ES6 Specific
*/
"arrow-body-style": [
"error",
"as-needed"
],
"no-confusing-arrow": "error",
"no-useless-constructor": "error",
"no-var": "error",
"prefer-const": "error",
"prefer-template": "error"
}
}