Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into BC-9123-babel-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
NFriedo committed Mar 6, 2025
2 parents a5974da + dc70cb6 commit 07688e1
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 91 deletions.
1 change: 0 additions & 1 deletion config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ module.exports = {
extensions: [".js", ".jsx", ".vue", ".ts", ".tsx"],
failOnWarning: false,
failOnError: true,
configType: "flat",
}),
],

Expand Down
37 changes: 21 additions & 16 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -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 `<script>` or `<script setup>` blocks.
// This might result-in false positive or negatives in some rules for `.vue` files.
// Note you also need to configure `allowJs: true` and `checkJs: true`
// in corresponding `tsconfig.json` files.
"js",
],
});

module.exports = defineConfigWithVueTs([
...pluginVue.configs["flat/essential"],
js.configs.recommended,
...vueTsEslintConfig({
extends: ["recommended"],
supportedScriptLangs: {
ts: true,

// [!DISCOURAGED]
// Set to `true` to allow plain `<script>` or `<script setup>` blocks.
// This might result-in false positive or negatives in some rules for `.vue` files.
// Note you also need to configure `allowJs: true` and `checkJs: true`
// in corresponding `tsconfig.json` files.
js: true,
},
}),
vueTsConfigs.recommended,
eslintPluginPrettierRecommended,

{
Expand Down Expand Up @@ -146,4 +151,4 @@ module.exports = [
"schulcloud/material-icon-imports": "off",
},
},
];
]);
Loading

0 comments on commit 07688e1

Please sign in to comment.