diff options
author | Rich Trott <rtrott@gmail.com> | 2019-11-27 22:57:10 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-11-30 06:28:31 -0800 |
commit | 68abaab8baac203833889c9106abf6fe82a5900f (patch) | |
tree | 7142a6f45b5a9f1d78ccd3fd589e42cd33287384 | |
parent | 359766b2c3f686fe4ebe5cd6bc4e99280e09b450 (diff) | |
download | android-node-v8-68abaab8baac203833889c9106abf6fe82a5900f.tar.gz android-node-v8-68abaab8baac203833889c9106abf6fe82a5900f.tar.bz2 android-node-v8-68abaab8baac203833889c9106abf6fe82a5900f.zip |
tools: enforce blank line between functions
Refs: https://github.com/nodejs/node/pull/21128#discussion_r351606730
PR-URL: https://github.com/nodejs/node/pull/30696
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
-rw-r--r-- | .eslintrc.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 6d608f356b..8acba223d9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -282,6 +282,10 @@ module.exports = { 'one-var': ['error', { initialized: 'never' }], 'one-var-declaration-per-line': 'error', 'operator-linebreak': ['error', 'after'], + 'padding-line-between-statements': [ + 'error', + { blankLine: 'always', prev: 'function', next: 'function' }, + ], 'prefer-const': ['error', { ignoreReadBeforeAssign: true }], 'quotes': ['error', 'single', { avoidEscape: true }], 'quote-props': ['error', 'consistent'], |