diff --git a/.changeset/witty-pants-carry.md b/.changeset/witty-pants-carry.md new file mode 100644 index 0000000000..503f3da210 --- /dev/null +++ b/.changeset/witty-pants-carry.md @@ -0,0 +1,5 @@ +--- +"@vue-storefront/eslint-config": patch +--- + +[FIXED] - Eslint plugin installation error diff --git a/engineering-toolkit/eslint-config/package.json b/engineering-toolkit/eslint-config/package.json index 5ccf936c66..5a05ed3d67 100644 --- a/engineering-toolkit/eslint-config/package.json +++ b/engineering-toolkit/eslint-config/package.json @@ -62,7 +62,6 @@ "eslint-plugin-unicorn": "^46.0.0", "eslint-plugin-unused-imports": "^2.0.0", "eslint-plugin-vue": "^9.10.0", - "eslint-plugin-custom-rules": "file:./src/custom-rules", "eslint-plugin-filename-rules": "^1.3.1", "eslint-plugin-perfectionist": "2.10.0", "vue-eslint-parser": "^9.1.1" diff --git a/engineering-toolkit/eslint-config/src/custom-rules/package.json b/engineering-toolkit/eslint-config/src/custom-rules/package.json deleted file mode 100644 index 78cd76f3f1..0000000000 --- a/engineering-toolkit/eslint-config/src/custom-rules/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "eslint-plugin-custom-rules", - "version": "0.0.1", - "main": "index.js" -} diff --git a/engineering-toolkit/eslint-config/src/next-strict.js b/engineering-toolkit/eslint-config/src/next-strict.js index 0acc38d033..bf2d62abed 100644 --- a/engineering-toolkit/eslint-config/src/next-strict.js +++ b/engineering-toolkit/eslint-config/src/next-strict.js @@ -1,7 +1,12 @@ +/* eslint-disable global-require */ /** @type {import("eslint").Linter.Config} */ module.exports = { extends: [require.resolve("./next")], - plugins: ["filename-rules", "jsdoc", "custom-rules"], + plugins: { + jsdoc: require("eslint-plugin-jsdoc"), + "filename-rules": require("eslint-plugin-filename-rules"), + "custom-rules": require("./custom-rules/index"), + }, root: true, ignorePatterns: [ "node_modules", diff --git a/yarn.lock b/yarn.lock index f70ee3b03c..ff8209467e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9102,9 +9102,6 @@ eslint-module-utils@^2.8.0: dependencies: debug "^3.2.7" -"eslint-plugin-custom-rules@file:./engineering-toolkit/eslint-config/src/custom-rules": - version "0.0.1" - eslint-plugin-es@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-3.0.1.tgz#75a7cdfdccddc0589934aeeb384175f221c57893"