Skip to content

Commit edb64b5

Browse files
committed
build: Run tyope-check on lint
1 parent ca7250c commit edb64b5

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"main": "src/index.js",
66
"scripts": {
77
"build": "vite build",
8-
"build-ts": "vite build",
9-
"lint": "eslint src",
8+
"lint": "npm run lint:eslint & npm run lint:type-check",
9+
"lint:eslint": "eslint src",
10+
"lint:type-check": "tsc",
1011
"start": "vite",
1112
"test": "echo \"Error: no test specified\" && exit 1"
1213
},
@@ -15,11 +16,13 @@
1516
"license": "ISC",
1617
"devDependencies": {
1718
"@relative-ci/agent": "^4.1.3",
19+
"@types/node": "^24.10.0",
1820
"@vitejs/plugin-react": "^5.0.0",
1921
"eslint": "^8.8.0",
2022
"eslint-config-airbnb": "^19.0.4",
2123
"rollup-plugin-bundle-stats": "^4.7.0-rc.5",
2224
"rollup-plugin-webpack-stats": "2.1.7",
25+
"typescript": "^5.9.3",
2326
"vite": "^7.0.0"
2427
},
2528
"dependencies": {

tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"allowSyntheticDefaultImports": true,
4+
"forceConsistentCasingInFileNames": true,
5+
"module": "es6",
6+
"moduleResolution": "bundler",
7+
"lib": ["ES6"],
8+
"noEmit": true
9+
},
10+
"exclude": ["node_modules"]
11+
}

0 commit comments

Comments
 (0)