-
-
Notifications
You must be signed in to change notification settings - Fork 223
Description
Describe the bug
Hello, I am having issues with svelte-check. It's ignoring most or all TypeScript warnings. You can see the screenshot below, you can see there is a warning in the MoreActions.svelte file, but svelte-check isn't picking up on it. I'm just running svelte-check -- --watch, but I've tried using --fail-on-warning and --threshold warning too. I'm sure that the files are being watched, because if I break things more severely the errors are caught. See both screenshots.
I've been following along with an older set of tutorials on MDN, so I suppose that's related to the issue. I've had a few other issues and have had to make tweaks to the config or package versions, but for the most part it has gone smoothly and everything works. Except this.
Reproduction
Clone the repo at https://github.com/kvnloughead/todo-svelte, and checkout the refactor/typescript branch. Install node modules and run npm run dev. Then run npm run check or npm run check:watch. Do this in vscode, with the svelte for vscode extension. Make some typescript warnings happen, and note that svelte-check doesn't catch them.
Expected behaviour
Svelte-check should display output showing typescript compiler warnings when they exist in the watched files.
System Info
- OS: Linux Mint 21.1 Cinnamon 5.6.8
- IDE: VSCode
Which package is the issue about?
No response
Additional Information, eg. Screenshots
tsconfig.json
{
"extends": "@tsconfig/svelte/tsconfig.json",
"include": ["src/**/*"],
"exclude": ["node_modules/*", "__sapper__/*", "public/*"],
"compilerOptions": { "ignoreDeprecations": "5.0" }
}package.json
{
"name": "svelte-app",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --host",
"check": "svelte-check",
"check:watch": "svelte-check '--watch'"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.0.0",
"@tsconfig/svelte": "^3.0.0",
"rollup": "^3.15.0",
"rollup-plugin-css-only": "^4.3.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-svelte": "^7.1.2",
"svelte-check": "^3.5.2",
"svelte-preprocess": "^5.0.0",
"tslib": "^2.5.0",
"typescript": "^5"
},
"dependencies": {
"sirv-cli": "^2.0.0",
"svelte": "^4.2.0"
}
}svelte.config.js
import sveltePreprocess from 'svelte-preprocess';
export default {
preprocess: sveltePreprocess()
};
