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
99 stars 10 forks source link

Add 'name' field to configs #375

Closed fbontin closed 3 days ago

fbontin commented 3 weeks 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",
  },
];