Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit b7d60b8

Browse files
Move comma-dangle to fixable ruleset
1 parent cffa40d commit b7d60b8

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

coding-styles/fixable.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ module.exports = {
8383
// Enforce
8484
'block-spacing': ['warn', 'always'],
8585

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+
8697
// Enforces spacing around commas
8798
// This rule aims to enforce spacing around a comma.
8899
// A space must be only after comma, i.e. `var a, b`

coding-styles/recommended.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,6 @@ module.exports = {
1515
extends: './fixable.js',
1616

1717
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-
2918
// Require Camelcase
3019
// This rule looks for any underscores (_) located within the source code. It ignores leading
3120
// and trailing underscores and only checks those in the middle of a variable name. If ESLint

0 commit comments

Comments
 (0)