Skip to content

Commit 85d0442

Browse files
Trotttargos
authored andcommitted
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) PR-URL: #37040 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 3bb1c71 commit 85d0442

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)