Fix svelte linting

This commit is contained in:
hensm
2022-06-03 16:45:44 +01:00
parent d0b9be7f70
commit f98f860034
7 changed files with 141 additions and 88 deletions

View File

@@ -1,7 +1,7 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"plugins": ["@typescript-eslint", "svelte3"],
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-useless-escape": "off",
@@ -16,7 +16,9 @@
}
]
},
"parserOptions": {
"extraFileExtensions": ".svelte"
},
"overrides": [
{
"files": ["*/bin/**/*.js"],
@@ -25,7 +27,14 @@
}
},
{
"files": ["**/*.ts", "**/*.tsx"],
"files": ["ext/**/*.svelte"],
"processor": "svelte3/svelte3",
"rules": {
"no-undef": "off"
}
},
{
"files": ["**/*.ts"],
"extends": "plugin:@typescript-eslint/recommended",
"rules": {
"@typescript-eslint/no-empty-interface": "off",
@@ -41,8 +50,12 @@
{
"allowedNames": ["this_"]
}
]
],
"no-undef": "off"
}
}
]
],
"settings": {
"svelte3/typescript": true
}
}