From dc70cb6fc4f727cc67cef866e84b5a76bda55cda Mon Sep 17 00:00:00 2001 From: NFriedo <69233063+NFriedo@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:18:56 +0100 Subject: [PATCH] BC-9170 - Update eslint libraries (#3584) * update eslint to 9.21.0 * update @eslint/js to 9.21.0 * update eslint-plugin-vue to 9.33.0 * update eslint-webpack-plugin to 5.0.0 * update @vue/eslint-config-typescript to 14.4.0 --- config/webpack/webpack.common.js | 1 - eslint.config.js | 37 +++--- package-lock.json | 198 ++++++++++++++++++++----------- package.json | 10 +- 4 files changed, 155 insertions(+), 91 deletions(-) diff --git a/config/webpack/webpack.common.js b/config/webpack/webpack.common.js index 03405b02c6..c455963e64 100644 --- a/config/webpack/webpack.common.js +++ b/config/webpack/webpack.common.js @@ -109,7 +109,6 @@ module.exports = { extensions: [".js", ".jsx", ".vue", ".ts", ".tsx"], failOnWarning: false, failOnError: true, - configType: "flat", }), ], diff --git a/eslint.config.js b/eslint.config.js index 2cf7696a36..2977b2afdc 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,26 +1,31 @@ const js = require("@eslint/js"); const pluginVue = require("eslint-plugin-vue"); -const vueTsEslintConfig = require("@vue/eslint-config-typescript"); +const { + defineConfigWithVueTs, + vueTsConfigs, + configureVueProject, +} = require("@vue/eslint-config-typescript"); const schulcloud = require("./lib/eslint-plugin-schulcloud"); const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); const globals = require("globals"); -module.exports = [ +configureVueProject({ + scriptLangs: [ + "ts", + + // [!DISCOURAGED] + // Include 'js' to allow plain `