Skip to content

Commit d2d6121

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 9c69ca5 commit d2d6121

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.js

+1
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)