diff --git a/test/rules/whitespace/all/test.js.lint b/test/rules/whitespace/all/test.js.lint index 3eaf444b901..c4cc76957c6 100644 --- a/test/rules/whitespace/all/test.js.lint +++ b/test/rules/whitespace/all/test.js.lint @@ -103,3 +103,12 @@ if () {} else {} + +/* some comment */{ + // some code with a preceding comment +} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +} diff --git a/test/rules/whitespace/all/test.ts.fix b/test/rules/whitespace/all/test.ts.fix index 9804d7a84fd..091a21af295 100644 --- a/test/rules/whitespace/all/test.ts.fix +++ b/test/rules/whitespace/all/test.ts.fix @@ -83,3 +83,12 @@ if () {} else {} + +/* some comment */{ + // some code with a preceding comment +} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +} diff --git a/test/rules/whitespace/all/test.ts.lint b/test/rules/whitespace/all/test.ts.lint index 7271dbbc1c3..85b4e48bd75 100644 --- a/test/rules/whitespace/all/test.ts.lint +++ b/test/rules/whitespace/all/test.ts.lint @@ -127,3 +127,12 @@ if () {} else {} + +/* some comment */{ + // some code with a preceding comment +} + +{ + const foo = 123; + // code that just wants to be encapsulated in a block scope +}