diff --git a/eslint.config.js b/eslint.config.js index 84c6748639..3afa494ac7 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,13 +1,11 @@ const pluginVue = require("eslint-plugin-vue"); const js = require("@eslint/js"); -// 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"); +// needed for packages that are not yet compatible with the flat config const { FlatCompat } = require("@eslint/eslintrc"); - const compat = new FlatCompat(); module.exports = [ @@ -36,7 +34,6 @@ module.exports = [ { languageOptions: { - // parser: tseslint.parser, ecmaVersion: 2020, globals: { ...globals.node, @@ -44,7 +41,6 @@ module.exports = [ }, plugins: { schulcloud, - // "@typescript-eslint": tseslint.plugin, }, ignores: [ ".vscode/*", @@ -70,7 +66,7 @@ module.exports = [ "@typescript-eslint/no-empty-function": "error", "@typescript-eslint/ban-ts-comment": "error", "@typescript-eslint/no-inferrable-types": "error", - // "@typescript-eslint/ban-types": "error", // was removed in the plugin + "@typescript-eslint/ban-types": "error", "vue/no-v-text-v-html-on-component": "error", "vue/no-v-html": "error", "vue/html-self-closing": [ diff --git a/package-lock.json b/package-lock.json index 7ad6a5d8f0..daa305c4d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -63,7 +63,6 @@ "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-schulcloud": "file:lib/eslint-plugin-schulcloud", "eslint-plugin-vue": "^9.23.0", "eslint-webpack-plugin": "^4.1.0", "fishery": "^2.2.2", @@ -100,7 +99,7 @@ "extraneous": true }, "lib/eslint-plugin-schulcloud": { - "dev": true + "extraneous": true }, "node_modules/@ampproject/remapping": { "version": "2.3.0", @@ -7717,10 +7716,6 @@ } } }, - "node_modules/eslint-plugin-schulcloud": { - "resolved": "lib/eslint-plugin-schulcloud", - "link": true - }, "node_modules/eslint-plugin-vue": { "version": "9.27.0", "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.27.0.tgz", diff --git a/package.json b/package.json index 2c699eeb61..2b13a2e819 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-schulcloud": "file:lib/eslint-plugin-schulcloud", "eslint-plugin-vue": "^9.23.0", "eslint-webpack-plugin": "^4.1.0", "fishery": "^2.2.2",