Skip to content

Commit e90c941

Browse files
committed
test(linter/plugins): type-check test fixtures
1 parent 0be1265 commit e90c941

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

apps/oxlint/test/fixtures/estree/files/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-nocheck
12
// dprint-ignore-file
23

34
// All `Identifier`s

apps/oxlint/test/fixtures/estree/output.snap.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
| * TSUnionType:exit: (types: TSStringKeyword, TSNumberKeyword)
3434
| * TSTypeAliasDeclaration:exit: (typeAnnotation: TSUnionType)
3535
| * Program:exit
36-
,-[files/index.ts:4:1]
37-
3 | // All `Identifier`s
38-
4 | ,-> let a = { x: y };
39-
5 | |
40-
6 | | // No `ParenthesizedExpression`s in AST
41-
7 | | const b = (x * ((('str' + ((123))))));
42-
8 | |
43-
9 | | // TS syntax
44-
10 | | type T = string;
45-
11 | |
46-
12 | | // No `TSParenthesizedType`s in AST
47-
13 | `-> type U = (((((string)) | ((number)))));
36+
,-[files/index.ts:5:1]
37+
4 | // All `Identifier`s
38+
5 | ,-> let a = { x: y };
39+
6 | |
40+
7 | | // No `ParenthesizedExpression`s in AST
41+
8 | | const b = (x * ((('str' + ((123))))));
42+
9 | |
43+
10 | | // TS syntax
44+
11 | | type T = string;
45+
12 | |
46+
13 | | // No `TSParenthesizedType`s in AST
47+
14 | `-> type U = (((((string)) | ((number)))));
4848
`----
4949
5050
Found 0 warnings and 1 error.

apps/oxlint/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
},
1010
"exclude": [
1111
"node_modules",
12-
"fixtures",
13-
"test/fixtures"
12+
"fixtures"
1413
]
1514
}

0 commit comments

Comments
 (0)