You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I run eslint I get different results for the files:
[...]\+page.svelte
2:6 warning 'test' is assigned a value but never used @typescript-eslint/no-unused-vars
[...]\+page.ts
1:1 error Unexpected var, use let or const instead no-var
1:5 warning 'test' is assigned a value but never used @typescript-eslint/no-unused-vars
Notably the ts(no-var) is being applied to the typescript file, however it isn't being applied to the svelte file. I'd like to have this handled consistently across svelte and typescript files?
For context, here are my config files (let me know if you need to see any other files):
{"extends": "./.svelte-kit/tsconfig.json","compilerOptions": {"allowJs": true,"checkJs": true,"esModuleInterop": true,"forceConsistentCasingInFileNames": true,"resolveJsonModule": true,"skipLibCheck": true,"sourceMap": true,"strict": true,"outDir": "dist","types": ["unplugin-icons/types/svelte"]}// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias//// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes// from the referenced tsconfig.json - TypeScript does not merge them in}
The text was updated successfully, but these errors were encountered:
I have the following two files:
+page.svelte
:and
+page.ts
:However, when I run
eslint
I get different results for the files:Notably the
ts(no-var)
is being applied to the typescript file, however it isn't being applied to the svelte file. I'd like to have this handled consistently across svelte and typescript files?For context, here are my config files (let me know if you need to see any other files):
.eslintrc.cjs
tsconfig.json
The text was updated successfully, but these errors were encountered: