From 37f5e175b0335af5ea22db15a479b5aacf5340ca Mon Sep 17 00:00:00 2001 From: Filip Bontin Date: Wed, 27 Nov 2024 01:08:44 +0100 Subject: [PATCH] fix: Add name field to flat configs (#380) * fix: Add name field to flat configs * Create old-rings-smile.md --------- Co-authored-by: Yosuke Ota --- .changeset/old-rings-smile.md | 5 +++++ lib/configs/flat/all.ts | 1 + lib/configs/flat/base.ts | 2 ++ lib/configs/flat/recommended.ts | 1 + lib/configs/flat/vue2-recommended.ts | 1 + 5 files changed, 10 insertions(+) create mode 100644 .changeset/old-rings-smile.md diff --git a/.changeset/old-rings-smile.md b/.changeset/old-rings-smile.md new file mode 100644 index 00000000..6f8f4be3 --- /dev/null +++ b/.changeset/old-rings-smile.md @@ -0,0 +1,5 @@ +--- +"eslint-plugin-vue-scoped-css": minor +--- + +fix: Add name field to flat configs diff --git a/lib/configs/flat/all.ts b/lib/configs/flat/all.ts index 8cabab65..0e547876 100644 --- a/lib/configs/flat/all.ts +++ b/lib/configs/flat/all.ts @@ -5,5 +5,6 @@ export default [ ...base, { rules: collectRules(), + name: "vue-scoped-css/flat/all", }, ]; diff --git a/lib/configs/flat/base.ts b/lib/configs/flat/base.ts index ee7255be..1b9f319e 100644 --- a/lib/configs/flat/base.ts +++ b/lib/configs/flat/base.ts @@ -8,11 +8,13 @@ export default [ return require("../../index"); }, }, + name: "vue-scoped-css/flat/base/plugins", }, { files: ["*.vue", "**/*.vue"], languageOptions: { parser: vueParser, }, + name: "vue-scoped-css/flat/base/options", }, ]; diff --git a/lib/configs/flat/recommended.ts b/lib/configs/flat/recommended.ts index c58afe9d..6c53f555 100644 --- a/lib/configs/flat/recommended.ts +++ b/lib/configs/flat/recommended.ts @@ -5,5 +5,6 @@ export default [ ...base, { rules: collectRules("vue3-recommended"), + name: "vue-scoped-css/flat/vue3-recommended", }, ]; diff --git a/lib/configs/flat/vue2-recommended.ts b/lib/configs/flat/vue2-recommended.ts index 12574eba..2b57bbd6 100644 --- a/lib/configs/flat/vue2-recommended.ts +++ b/lib/configs/flat/vue2-recommended.ts @@ -5,5 +5,6 @@ export default [ ...base, { rules: collectRules("vue2-recommended"), + name: "vue-scoped-css/flat/vue2-recommended", }, ];