Skip to content

Commit f8f534e

Browse files
authored
fix(eslint-plugin): [padding-line-between-statements] TSModuleBlock should change scope (typescript-eslint#3944)
1 parent 240fc65 commit f8f534e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/eslint-plugin/src/rules/padding-line-between-statements.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,11 @@ export default util.createRule<Options, MessageIds>({
763763
Program: enterScope,
764764
BlockStatement: enterScope,
765765
SwitchStatement: enterScope,
766+
TSModuleBlock: enterScope,
766767
'Program:exit': exitScope,
767768
'BlockStatement:exit': exitScope,
768769
'SwitchStatement:exit': exitScope,
770+
'TSModuleBlock:exit': exitScope,
769771

770772
':statement': verify,
771773

packages/eslint-plugin/tests/rules/padding-line-between-statements.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5084,7 +5084,6 @@ declare namespace Types {
50845084
[key: string]: string;
50855085
}
50865086
}
5087-
50885087
`,
50895088
options: [
50905089
{ blankLine: 'always', prev: '*', next: ['interface', 'type'] },
@@ -5093,7 +5092,6 @@ declare namespace Types {
50935092
{ messageId: 'expectedBlankLine' },
50945093
{ messageId: 'expectedBlankLine' },
50955094
{ messageId: 'expectedBlankLine' },
5096-
{ messageId: 'expectedBlankLine' },
50975095
],
50985096
},
50995097
],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy