Skip to content

Commit c9d795e

Browse files
Copilotfvdm
andcommitted
Extend padding-line-between-statements rule to include let and const
Co-authored-by: fvdm <93784+fvdm@users.noreply.github.com>
1 parent d86af59 commit c9d795e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ export default [
6262
'new-cap': 'off',
6363
'padding-line-between-statements': ['error', {
6464
blankLine: 'always',
65-
prev: 'var',
65+
prev: ['var', 'let', 'const'],
6666
next: '*',
6767
}, {
6868
blankLine: 'any',
69-
prev: 'var',
70-
next: 'var',
69+
prev: ['var', 'let', 'const'],
70+
next: ['var', 'let', 'const'],
7171
}],
7272
'no-alert': 'error',
7373
'no-caller': 'error',

0 commit comments

Comments
 (0)