Skip to content

Commit

Permalink
chore: typecheck test files (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Mar 4, 2024
1 parent c8ed24b commit b26213c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 15 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"watch": "tsup --watch --sourcemap",
"test": "vscode-test",
"test:watch": "vscode-test --watch-files src/**/*.ts --watch-files test/**/*.test.ts",
"typecheck": "tsc --noEmit",
"typecheck": "tsc -b ./ ./test",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache --fix ."
},
Expand All @@ -139,6 +139,7 @@
"@types/fs-extra": "^9.0.13",
"@types/glob": "^7.2.0",
"@types/micromatch": "^4.0.6",
"@types/mocha": "^10.0.6",
"@types/node": "^18.11.18",
"@types/semver": "^7.3.9",
"@types/vscode": "^1.77.0",
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["../tsconfig.base.json"],
"include": ["."],
"compilerOptions": {

Check failure on line 4 in test/tsconfig.json

View workflow job for this annotation

GitHub Actions / build (20.x)

Expected object keys to be in specified order. 'compilerOptions' should be before 'include'
"types": ["@types/mocha"]
}
}
12 changes: 12 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "ESNext",
"lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "Bundler",
"types": [],
"strict": true,
"noEmit": true,
"skipLibCheck": true
}
}
16 changes: 2 additions & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020", "ESNext.Disposable"],
"rootDir": "src",
"module": "commonJS",
"types": ["node"],
"strict": true,
"outDir": "out",
"sourceMap": true,
"esModuleInterop": true,
"skipLibCheck": true
},
"include": ["src/**/*.ts"],
"exclude": ["samples/**/*"]
"extends": ["./tsconfig.base.json"],
"include": ["src"]
}

0 comments on commit b26213c

Please sign in to comment.