Open hyunbinseo opened 2 months ago
This seems like something that would have to be fixed on the eslint side. It's probably best to file an issue there about it
The same issue occurs in create-svelte@6.3.0
with ESLint v9.
Maybe the @types/eslint
v8 is not compatible with ESLint v9? Source
// Current dev dependencies
{
// ...
"@types/eslint": "^8.56.7",
"eslint": "^9.0.0",
}
It looks like @types/eslint-config-prettier
needs to be installed
I only get all those red squiggles if installing @types/eslint__js
. By default it just says the types for @eslint/js
are missing, which is a bit better
I can confirm. Recreating a new project, I get the following errors:
Could not find a declaration file for module '@eslint/js'. Could not find a declaration file for module 'eslint-config-prettier'.
I still can't get remove the squiggles on an existing project that was upgraded.
It seems to be importing the correct type definition from the identical file.
@types/eslint__js
is not installed in this pnpm workspace.
Commenting these three lines does remove the error.
export default [
js.configs.recommended,
// ...ts.configs.recommended,
// ...svelte.configs['flat/recommended'],
prettier,
// ...svelte.configs['flat/prettier'],
// ...
]
@benmccann The out-of-the box SvelteKit template gives squiggles. Can you check again?
Here is the full reproduction video. Happens on both pnpm
and npm
.
https://github.com/sveltejs/kit/assets/47051820/23e35703-a14d-4397-b5ad-df3df52dbe49
Well either way it seems like the issue is that the types upstream need to be updated. There's not much we can do about it here until then. You could try filing an issue upstream
Describe the bug
Reproduction
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response