diff --git a/.eslintrc.json b/.eslintrc.json index 69b7cf1..5c3b47f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,7 +21,7 @@ }, "overrides": [ { - "files": ["*/bin/**/*.js"], + "files": ["**/*.js"], "env": { "node": true } @@ -34,10 +34,10 @@ } }, { - "files": ["**/*.ts"], + "files": ["**/*.ts", "ext/**/*.svelte"], "extends": "plugin:@typescript-eslint/recommended", "rules": { - "@typescript-eslint/no-empty-interface": "off", + "@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-unused-vars": [ @@ -50,8 +50,7 @@ { "allowedNames": ["this_"] } - ], - "no-undef": "off" + ] } } ], diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..db01ee6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "eslint.validate": ["javascript", "svelte"] +} diff --git a/svelte.config.js b/svelte.config.js new file mode 100644 index 0000000..f8101c9 --- /dev/null +++ b/svelte.config.js @@ -0,0 +1,5 @@ +// svelte-vscode seems to require a config for proper linting support +const sveltePreprocess = require("./ext/node_modules/svelte-preprocess"); +module.exports = { + preprocess: sveltePreprocess() +};