eslint-config-svelte Eslint config for Svelte 4 installation Run npm i -D johbog/eslint-config-svelte Add the following to your package.json: "eslintConfig": { "extends": "svelte" } You could also create a .eslintrc.json config with: { "extends": "svelte" }