This repository was archived by the owner on Mar 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,12 @@ module.exports = {
180
180
maxEOF : 1 ,
181
181
} ] ,
182
182
183
+ // Disallow conditional expressions that can be expressed with simpler constructs
184
+ // Use || instead of ternary in default assignments
185
+ 'no-unneeded-ternary' : [ 1 , {
186
+ defaultAssignment : false ,
187
+ } ] ,
188
+
183
189
// Require or disallow spacing between function identifiers and their invocations
184
190
// This rule disallows spaces between the function name and the opening parenthesis that calls
185
191
// it.
@@ -223,6 +229,12 @@ module.exports = {
223
229
// possible.
224
230
'operator-assignment' : [ 1 , 'always' ] ,
225
231
232
+ // Operator Linebreak
233
+ // When a statement is too long to fit on a single line, line breaks are generally inserted next
234
+ // to the operators separating expressions. This rule is aimed at enforcing a particular
235
+ // operator line break style.
236
+ 'operator-linebreak' : [ 1 , 'before' ] ,
237
+
226
238
// Enforce padding within blocks
227
239
// This rule enforces consistent padding within blocks.
228
240
'padded-blocks' : [ 1 , 'never' ] ,
Original file line number Diff line number Diff line change @@ -137,12 +137,6 @@ module.exports = {
137
137
// Disallow Dangling Underscores in Identifiers
138
138
'no-underscore-dangle' : 1 ,
139
139
140
- // Disallow conditional expressions that can be expressed with simpler constructs
141
- // Use || instead of ternary in default assignments
142
- 'no-unneeded-ternary' : [ 1 , {
143
- defaultAssignment : false ,
144
- } ] ,
145
-
146
140
// Disallow Warning Comments
147
141
// These comments are a warning signal, that there is something not production ready in your
148
142
// code. Most likely you want to fix it or remove the comments before you roll out your code
@@ -160,12 +154,6 @@ module.exports = {
160
154
const : 'never' ,
161
155
} ] ,
162
156
163
- // Operator Linebreak
164
- // When a statement is too long to fit on a single line, line breaks are generally inserted next
165
- // to the operators separating expressions. This rule is aimed at enforcing a particular
166
- // operator line break style.
167
- 'operator-linebreak' : [ 1 , 'before' ] ,
168
-
169
157
// Enforces having an empty line after the last top-level import statement or require call
170
158
'import/newline-after-import' : 1 ,
171
159
} ,
Original file line number Diff line number Diff line change 12
12
"eslint-plugin-react" : " ^6.8.0"
13
13
},
14
14
"devDependencies" : {
15
- "eslint" : " ^3.12 .0"
15
+ "eslint" : " ^3.13 .0"
16
16
},
17
17
"engines" : {},
18
18
"homepage" : " https://github.com/strvcom/eslint-config-javascript" ,
23
23
"license" : " BSD-3-Clause" ,
24
24
"main" : " default" ,
25
25
"peerDependencies" : {
26
- "eslint" : " ^3.12 .0"
26
+ "eslint" : " ^3.13 .0"
27
27
},
28
28
"repository" : {
29
29
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ module.exports = {
119
119
// Unused, too restrictive.
120
120
'object-curly-newline' : 0 ,
121
121
122
+ // Prefer destructuring from arrays and objects
123
+ // Unused, too restrictive.
124
+ 'prefer-destructuring' : 0 ,
125
+
122
126
// Suggest using Reflect methods where applicable
123
127
// Deprecated, will be removed from ESLint soon
124
128
'prefer-reflect' : 0 ,
You can’t perform that action at this time.
0 commit comments