Skip to content

Commit

Permalink
fix(stylistic): add missing comma-dangle rule
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Jan 27, 2017
1 parent c4742c0 commit e47d255
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rules/stylistic-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ module.exports = {
},
}],

// require trailing commas in multiline object literals
// http://eslint.org/docs/rules/comma-dangle
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
}],

// enforce consistent spacing before and after commas
// http://eslint.org/docs/rules/comma-spacing
'comma-spacing': ['error', { before: false, after: true }],
Expand Down

0 comments on commit e47d255

Please sign in to comment.