-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
I have this configuration in package.json according to the documentation:
"lint-staged": {
"src/**/*.{ts,js}": [
"npx prettier --write"
],
"src/**/*.ts": [
"npx eslint --fix",
"npx eslint",
"npx tsc-files --noEmit"
]
}
When I try to commit I get this error:
✖ tsc-files --noEmit:
'C:\Disc' is not recognized as an internal or external command,
operable program or batch file.
husky - pre-commit hook exited with code 1 (error)
Looks like it starts this command from the path, but I have no idea why.
Meanwile, if I run "npx tsc-files --noEmit" command directly in the vscode console, no errors, but nothing happens: it doesn't execute "npx tsc --project tsconfig.json".
Here is my tsconfig.json:
{
"compilerOptions": {
"baseUrl": "./",
"target": "esnext",
"module": "CommonJS",
"moduleResolution": "Node",
"lib": ["dom", "dom.iterable", "esnext"],
"outDir": "build",
"rootDirs": ["src", "seeding-app", "cli"],
"sourceMap": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"noUnusedLocals": true,
},
"include": ["src/**/**/*.ts", "seeding-app/**/**/*.ts", "cli/**/*.ts"],
}
Any support would be appreciated.
Metadata
Metadata
Assignees
Labels
No labels