This repository was archived by the owner on Mar 7, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,17 @@ module.exports = {
83
83
// Enforce
84
84
'block-spacing' : [ 'warn' , 'always' ] ,
85
85
86
+ // This rule enforces consistent use of trailing commas in object and array literals
87
+ // Allow trailing commas for func parameters, array and object literals spread across
88
+ // multiple lines
89
+ 'comma-dangle' : [ 'warn' , {
90
+ arrays : 'always-multiline' ,
91
+ objects : 'always-multiline' ,
92
+ imports : 'always-multiline' ,
93
+ exports : 'always-multiline' ,
94
+ functions : 'always-multiline' ,
95
+ } ] ,
96
+
86
97
// Enforces spacing around commas
87
98
// This rule aims to enforce spacing around a comma.
88
99
// A space must be only after comma, i.e. `var a, b`
Original file line number Diff line number Diff line change @@ -15,17 +15,6 @@ module.exports = {
15
15
extends : './fixable.js' ,
16
16
17
17
rules : {
18
- // This rule enforces consistent use of trailing commas in object and array literals
19
- // Allow trailing commas for func parameters, array and object literals spread across
20
- // multiple lines
21
- 'comma-dangle' : [ 'warn' , {
22
- arrays : 'always-multiline' ,
23
- objects : 'always-multiline' ,
24
- imports : 'always-multiline' ,
25
- exports : 'always-multiline' ,
26
- functions : 'always-multiline' ,
27
- } ] ,
28
-
29
18
// Require Camelcase
30
19
// This rule looks for any underscores (_) located within the source code. It ignores leading
31
20
// and trailing underscores and only checks those in the middle of a variable name. If ESLint
You can’t perform that action at this time.
0 commit comments