diff --git a/eslint.config.js b/eslint.config.js index d2eab4276d..84c6748639 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,37 +1,42 @@ const pluginVue = require("eslint-plugin-vue"); const js = require("@eslint/js"); -const vueTsEslintConfig = require("@vue/eslint-config-typescript"); +// const vueTsEslintConfig = require("@vue/eslint-config-typescript"); const tseslint = require("typescript-eslint"); const schulcloud = require("./lib/eslint-plugin-schulcloud"); const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); const globals = require("globals"); +const { FlatCompat } = require("@eslint/eslintrc"); + +const compat = new FlatCompat(); + module.exports = [ ...pluginVue.configs["flat/essential"], js.configs.recommended, - ...vueTsEslintConfig({ - // not supported as of version 13, version 14 will introduce support for the flat config - // for version 14 of this, we need to upgrade to eslint 9 because of the peer dependency - extends: [ - // By default, only the recommended rules are enabled. - "recommended", - ], - supportedScriptLangs: { - ts: true, + // ...vueTsEslintConfig({ + // // not supported as of version 13, version 14 will introduce support for the flat config + // // for version 14 of this, we need to upgrade to eslint 9 because of the peer dependency + // extends: [ + // // By default, only the recommended rules are enabled. + // "recommended", + // ], + // supportedScriptLangs: { + // ts: true, - // [!DISCOURAGED] - // Set to `true` to allow plain `