-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
174 lines (174 loc) · 4.66 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"meteor": true,
"mongo": true,
"jasmine": true,
"es6": true
},
"globals": {
// thrid-party packages globals
"SimpleSchema": false,
"angular2now": false,
"angular": false,
"inject": false
},
"rules": {
"no-unused-vars": [
1,
{
"vars": "all",
"args": "after-used"
}
],
"curly": 2,
// Require Following Curly Brace Conventions
"eqeqeq": 2,
// Require === and !==
"no-alert": 2,
// Disallow Use of Alert
"no-caller": 2,
// Disallow Use of caller/callee
"no-else-return": 2,
// Disallow return in else
"no-eval": 2,
// Disallow eval()
"no-implied-eval": 2,
// Disallow Implied eval()
"no-labels": 2,
// Disallow use of labeled statements
"no-lone-blocks": 2,
// Disallow Unnecessary Nested Blocks
"no-loop-func": 2,
// Disallow Functions in Loops
"no-magic-numbers": 1,
// Disallow Magic Numbers
"no-multi-spaces": 2,
// Disallow multiple spaces
"no-native-reassign": 2,
// Disallow Reassignment of Native Objects
"no-new-func": 2,
// Disallow Function Constructor
"no-new-wrappers": 2,
// Disallow Primitive Wrapper Instances
"no-new": 2,
// Disallow new For Side Effects
"no-param-reassign": 2,
// Disallow Reassignment of Function Parameters
"no-proto": 2,
// Disallow Use of __proto__
"no-return-assign": 2,
// Disallow Assignment in return Statement
"no-script-url": 2,
// Disallow use of javascript: urls
"no-self-compare": 2,
// Disallow comparisons where both sides are exactly the same
"no-throw-literal": 2,
// Restrict what can be thrown as an exception
"no-unused-expressions": 2,
// Disallow usage of expressions in statement position
"no-useless-call": 2,
// Disallow unnecessary .call() and .apply()
"no-useless-concat": 2,
// Disallow unnecessary concatenation of literals or template literals
"no-void": 2,
// Disallow use of the void operator
"no-with": 2,
// No with statements
"vars-on-top": 2,
// Require Variable Declarations to be at the top of their scope
"wrap-iife": 2,
// Require immediate function invocation to be wrapped in parentheses
"array-bracket-spacing": [
2,
"never"
],
// Disallow or enforce spaces inside of brackets
"block-spacing": [
2,
"always"
],
// Disallow or enforce spaces inside of single line blocks
"camelcase": [
2,
{
"properties": "always"
}
],
// Require Camelcase
"comma-spacing": [
2,
{
"before": false,
"after": true
}
],
// Enforces spacing around commas
"computed-property-spacing": [
2,
"never"
],
// Disallow or enforce spaces inside of computed properties
"consistent-this": [
2,
"self"
],
// Require Consistent This
"max-nested-callbacks": [
2,
3
],
// Set Maximum Depth of Nested Callbacks
"new-parens": 2,
// Require Parens for Constructors
"newline-after-var": 2,
// Require or disallow an empty newline after variable declarations
"no-array-constructor": 2,
// Disallow creation of dense arrays using the Array constructor
"no-inline-comments": 2,
// Disallows comments after code. Comments must come on their own lines
"no-multiple-empty-lines": [
2,
{
"max": 2
}
],
// Disallows multiple blank lines
"no-nested-ternary": 2,
// Disallow Nested Ternaries
"no-new-object": 2,
// Disallow the use of the Object constructor
"no-unneeded-ternary": 2,
// Disallow conditional expressions that can be expressed with simpler constructs
"object-curly-spacing": [
2,
"never"
],
// Disallow or enforce spaces inside of curly braces in objects.
"one-var": [
2,
"never"
],
// Require or Disallow One Variable Declaration per Scope
"wrap-regex": 2,
// Require Regex Literals to be Wrapped
"arrow-parens": [
2,
"always"
],
// Require parens in arrow function arguments
"constructor-super": 2,
// Verify calls of super() in constructors
"no-class-assign": 2,
// Disallow modifying variables of class declarations
"no-const-assign": 2,
// Disallow modifying variables that are declared using const
"no-dupe-class-members": 2,
// Disallow duplicate name in class members
"no-this-before-super": 2,
// Disallow use of this/super before calling super() in constructors
}
}