diff options
author | Rich Trott <rtrott@gmail.com> | 2021-01-23 22:47:25 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-02-02 12:42:00 +0300 |
commit | d2d6121f3ed25b460c3d2af65fcde50b455346f7 (patch) | |
tree | 9512a0e6efb24912d9c76685bbdca42f2ba7869a /.eslintrc.js | |
parent | 9c69ca5e542762e3769279bb41fba1831389e52f (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', |