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
With this setup, linting the whole project takes a LONG time (about 4 minutes on a MacBook Pro M2).
I checked the latest Svelte demo project and saw this ESLint config:
I noticed that it doesn’t include project: './tsconfig.json'. I removed project: './tsconfig.json' from my config for .svelte files (but kept it for .ts files), and now linting only takes 50 seconds.
And everything still works in .svelte files — all the rules and checks are applied, as if it still knows about tsconfig.json.
My Questions:
Why does ESLint still work in .svelte files without project: './tsconfig.json'?
Did I do the right thing by removing it? If yes, should the documentation mention this?
The text was updated successfully, but these errors were encountered:
I have a big Svelte project with a lot of heavy ESLint rules. This is my original
.eslintrc.cjs
config:With this setup, linting the whole project takes a LONG time (about 4 minutes on a MacBook Pro M2).
I checked the latest Svelte demo project and saw this ESLint config:
I noticed that it doesn’t include
project: './tsconfig.json'
. I removedproject: './tsconfig.json'
from my config for.svelte
files (but kept it for.ts
files), and now linting only takes 50 seconds.And everything still works in
.svelte
files — all the rules and checks are applied, as if it still knows abouttsconfig.json
.My Questions:
.svelte
files withoutproject: './tsconfig.json'
?The text was updated successfully, but these errors were encountered: