Skip to content

Commit b2dc915

Browse files
committed
update tsconfig and oxlint to error if files have no ts extension
1 parent 324baa7 commit b2dc915

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.oxlintrc.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
"no-warning-comments": "off",
2222
"sort-keys": "off",
2323

24+
"import/extensions": [
25+
"error",
26+
{
27+
"ts": "always",
28+
"tsx": "always",
29+
"ignorePackages": true,
30+
"checkTypeImports": true,
31+
},
32+
],
33+
2434
"vitest/no-conditional-in-test": "off",
2535
"jest/no-conditional-in-test": "off",
2636

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"module": "esnext",
5-
"moduleResolution": "bundler",
4+
"module": "node16",
5+
"moduleResolution": "node16",
66
"noEmit": true,
77
"strict": true,
88
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)