Skip to content

Commit 52cb424

Browse files
committed
Require trailing comma
1 parent 331b316 commit 52cb424

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ module.exports = {
7878
// Require CamelCase
7979
camelcase: ['error', { properties: 'never' }],
8080

81+
// Require or disallow trailing commas
82+
'comma-dangle': ['error', 'always-multiline'],
83+
8184
// Require space after comma
8285
'comma-spacing': ['error', { after: true }],
8386

0 commit comments

Comments
 (0)