future-architect / eslint-plugin-vue-scoped-css

ESLint plugin for Scoped CSS in Vue.js
https://future-architect.github.io/eslint-plugin-vue-scoped-css/
MIT License
98 stars 10 forks source link

Add 'name' field to configs #375

Open fbontin opened 1 week ago

fbontin commented 1 week ago

Hello, and thanks for a great plugin, it's been very helpful in my project.

Would it be possible to add a name field in your configs? When using the eslint config inspector, the configs from this repo shows up as anonymous #12, anonymous #13, etc.

Adding a name (as done by for example eslint-plugin-vue) would make it easier to understand when debugging.

For example, for the flat/recommended config, it could maybe look like this:

import { collectRules } from "../../utils/rules";
import base from "./base";

export default [
  ...base,
  {
    rules: collectRules("vue3-recommended"),
++  name: "vue-scoped-css/flat/recommended",
  },
];