Skip to content

Add 'name' field to configs #375

Closed
@fbontin

Description

@fbontin

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",
  },
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions