Skip to content

Commit 81712c9

Browse files
Trotttargos
authored andcommitted
tools: enforce blank line between functions
Refs: #21128 (comment) PR-URL: #30696 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Denys Otrishko <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 3e58871 commit 81712c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.eslintrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ module.exports = {
282282
'one-var': ['error', { initialized: 'never' }],
283283
'one-var-declaration-per-line': 'error',
284284
'operator-linebreak': ['error', 'after'],
285+
'padding-line-between-statements': [
286+
'error',
287+
{ blankLine: 'always', prev: 'function', next: 'function' },
288+
],
285289
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
286290
'quotes': ['error', 'single', { avoidEscape: true }],
287291
'quote-props': ['error', 'consistent'],

0 commit comments

Comments
 (0)