Skip to content

Commit 79a6948

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: #37028 (review)
1 parent 73d8d61 commit 79a6948

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)