chore: add tsc check to lint-staged
This commit is contained in:
6
lint-staged.config.js
Normal file
6
lint-staged.config.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
const config = {
|
||||||
|
"*.{ts,tsx}": () => "tsc -p tsconfig.json --noEmit",
|
||||||
|
"*": "prettier --write",
|
||||||
|
}
|
||||||
|
|
||||||
|
export default config
|
||||||
@@ -38,8 +38,5 @@
|
|||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "18"
|
"node": "18"
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{ts,tsx,cjs,mjs,css,md,json}": "prettier --write"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user