Skip to content

Allow globs in jsonTrailingCommaFiles #38

@tommy-mitchell

Description

@tommy-mitchell

Specifying files to use trailing commas currently requires listing every file explicitly:

"jsonTrailingCommaFiles": [
  "tsconfig.json",
  "tsconfig.base.json",
  "jsconfig.json",
  ".vscode/settings.json",
  ".vscode/extensions.json",
  ".vscode/tasks.json",
  ".vscode/launch.json",
]

It'd be convenient to allow some glob-like matching (which is already supported for includes/excludes):

"jsonTrailingCommaFiles": [
  "{j,t}sconfig*.json",
  ".vscode/*.json"
]

This was suggested in #14 (comment) as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions