diff options
author | Weijia Wang <381152119@qq.com> | 2018-03-25 22:27:38 +0800 |
---|---|---|
committer | Weijia Wang <381152119@qq.com> | 2018-04-01 22:33:13 +0800 |
commit | 254058109f469f64b8ca23bb65a206abab380604 (patch) | |
tree | 4069f77207f62816c248ed1ac9910467ff1b15d6 /.eslintrc.js | |
parent | f89f79893d6e15938f9237efe4d2473ab4a65e9f (diff) | |
download | node-new-254058109f469f64b8ca23bb65a206abab380604.tar.gz |
tools: add 'spaced-comment' into eslint rules
PR-URL: https://github.com/nodejs/node/pull/19596
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index cbadffded2..5c49331014 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -224,6 +224,10 @@ module.exports = { 'space-in-parens': ['error', 'never'], 'space-infix-ops': 'error', 'space-unary-ops': 'error', + 'spaced-comment': ['error', 'always', { + 'block': { 'balanced': true }, + 'exceptions': ['-'] + }], 'strict': ['error', 'global'], 'symbol-description': 'error', 'template-curly-spacing': 'error', |