Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow globs in jsonTrailingCommaFiles #38

Open
tommy-mitchell opened this issue Jul 12, 2024 · 0 comments
Open

Allow globs in jsonTrailingCommaFiles #38

tommy-mitchell opened this issue Jul 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tommy-mitchell
Copy link

tommy-mitchell commented Jul 12, 2024

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.

@dsherret dsherret added the enhancement New feature or request label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants