diff options
author | Michaƫl Zasso <targos@protonmail.com> | 2016-12-10 11:08:56 +0100 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2016-12-22 20:27:59 -0800 |
commit | 966e5cfb8169a35bf3a99d0272256b0976681a70 (patch) | |
tree | d0f1fc3ca04c19df760ec4b8a5fc0c5510b85221 /tools | |
parent | 9fd79c9f5ba57f73783478e26555591b0c30f8c8 (diff) | |
download | node-new-966e5cfb8169a35bf3a99d0272256b0976681a70.tar.gz |
tools: enforce linebreak after ternary operators
This is to be consistent with the other operators and helps
understanding the context when the code is grepped.
PR-URL: https://github.com/nodejs/node/pull/10213
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/eslint-rules/no-useless-regex-char-class-escape.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/eslint-rules/no-useless-regex-char-class-escape.js b/tools/eslint-rules/no-useless-regex-char-class-escape.js index 934a3fa193..e18077098d 100644 --- a/tools/eslint-rules/no-useless-regex-char-class-escape.js +++ b/tools/eslint-rules/no-useless-regex-char-class-escape.js @@ -108,9 +108,9 @@ module.exports = { }, create(context) { - const overrideSet = new Set(context.options.length - ? context.options[0].override || [] - : []); + const overrideSet = new Set(context.options.length ? + context.options[0].override || [] : + []); /** * Reports a node |