Skip to content

Commit 1906f7a

Browse files
committed
tools: enable object-curly-newline in ESLint rules
I saw a PR review comment about newlines in desructured assignments, and this would be the rule to enforce these kinds of nits. Start by just enabling the rule. We can incrementally adjust it to be more strict. Refs: https://eslint.org/docs/rules/object-curly-newline Refs: nodejs#37028 (review)
1 parent e4e1f38 commit 1906f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ module.exports = {
258258
'no-void': 'error',
259259
'no-whitespace-before-property': 'error',
260260
'no-with': 'error',
261+
'object-curly-newline': 'error',
261262
'object-curly-spacing': ['error', 'always'],
262263
'one-var': ['error', { initialized: 'never' }],
263264
'one-var-declaration-per-line': 'error',

0 commit comments

Comments
 (0)