Skip to content

Commit

Permalink
fix: Add name field to flat configs (#380)
Browse files Browse the repository at this point in the history
* fix: Add name field to flat configs

* Create old-rings-smile.md

---------

Co-authored-by: Yosuke Ota <[email protected]>
  • Loading branch information
fbontin and ota-meshi authored Nov 27, 2024
1 parent 1d55ff7 commit 37f5e17
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-rings-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-vue-scoped-css": minor
---

fix: Add name field to flat configs
1 change: 1 addition & 0 deletions lib/configs/flat/all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default [
...base,
{
rules: collectRules(),
name: "vue-scoped-css/flat/all",
},
];
2 changes: 2 additions & 0 deletions lib/configs/flat/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
];
1 change: 1 addition & 0 deletions lib/configs/flat/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default [
...base,
{
rules: collectRules("vue3-recommended"),
name: "vue-scoped-css/flat/vue3-recommended",
},
];
1 change: 1 addition & 0 deletions lib/configs/flat/vue2-recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export default [
...base,
{
rules: collectRules("vue2-recommended"),
name: "vue-scoped-css/flat/vue2-recommended",
},
];

0 comments on commit 37f5e17

Please sign in to comment.