Revert TypeScript migration - keep JS/JSX

This commit is contained in:
root
2026-06-18 17:06:54 +02:00
parent e6d92f27b3
commit 7c72ed82b6
41 changed files with 680 additions and 986 deletions
+7 -18
View File
@@ -1,6 +1,5 @@
import globals from "globals";
import tseslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import pluginVue from "eslint-plugin-vue";
export default [
{
@@ -12,32 +11,22 @@ export default [
"build/**",
],
},
...pluginVue.configs["flat/essential"],
{
files: ["**/*.{ts,tsx}"],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.node,
Alpine: "readonly",
$: "readonly",
jQuery: "readonly",
},
},
plugins: {
"@typescript-eslint": tseslint,
},
rules: {
"no-console": "warn",
"no-debugger": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{ argsIgnorePattern: "^_" },
],
"vue/multi-word-component-names": "off",
"vue/no-v-html": "off",
},
},
];