Skip to content

Commit

Permalink
adjust custom plugin accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
NFriedo committed Sep 27, 2024
1 parent 78b8e65 commit f59ca33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
8 changes: 2 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down Expand Up @@ -36,15 +34,13 @@ module.exports = [

{
languageOptions: {
// parser: tseslint.parser,
ecmaVersion: 2020,
globals: {
...globals.node,
},
},
plugins: {
schulcloud,
// "@typescript-eslint": tseslint.plugin,
},
ignores: [
".vscode/*",
Expand All @@ -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": [
Expand Down
7 changes: 1 addition & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f59ca33

Please sign in to comment.