diff options
author | Rich Trott <rtrott@gmail.com> | 2021-01-23 22:47:25 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-01-27 03:49:29 +0300 |
commit | 3e54870ce3b4999fb9804ae9e5b105a83a8f190f (patch) | |
tree | 3ef8683827a9a0c679cb054e5b91c7d54db19c8c /.eslintrc.js | |
parent | 996b85b5c2e59262dfaeb017d882ea4324371729 (diff) |
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: https://github.com/nodejs/node/pull/37028#pullrequestreview-574744497
PR-URL: https://github.com/nodejs/node/pull/37040
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 010c02be11b..6d7afd31fae 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -258,6 +258,7 @@ module.exports = { 'no-void': 'error', 'no-whitespace-before-property': 'error', 'no-with': 'error', + 'object-curly-newline': 'error', 'object-curly-spacing': ['error', 'always'], 'one-var': ['error', { initialized: 'never' }], 'one-var-declaration-per-line': 'error', |