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

Commit cffa40d

Browse files
Enable comma-dangle for functions
1 parent 9c09a01 commit cffa40d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

coding-styles/recommended.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ module.exports = {
1818
// This rule enforces consistent use of trailing commas in object and array literals
1919
// Allow trailing commas for func parameters, array and object literals spread across
2020
// multiple lines
21-
'comma-dangle': ['warn', 'always-multiline'],
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+
}],
2228

2329
// Require Camelcase
2430
// This rule looks for any underscores (_) located within the source code. It ignores leading

0 commit comments

Comments
 (0)