huggingface / huggingface/prettier-plugin-vertical-align

Feature Request: Support for targeting specific files

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
prs welcome
Dominant language
TypeScript
Stars
16
Forks
4
Avg merge
35m
Merged PRs (30d)
1

Description

Hey there!

I’ve tried your prettier-plugin-vertical-align plugin, and it’s been great! One thing that would make it even more useful is the ability to apply the plugin only to certain files (e.g., specific file types or paths) or even objects, instead of having it apply globally across the entire project.

Can you add support for something like that?:
```
{
"plugins": [
"@huggingface/prettier-plugin-vertical-align"
],
"overrides": [
{
"files": "componentVariants.js",
"options": {
"verticalAlign": true,
"alignInGroups": true
}
},
{
"files": "*",
"options": {
"verticalAlign": false
}
}
],
"alignInGroups": "never",
"verticalAlign": "false"
}
```

And ideally a comment-based approach, where:
- adding "// @prettier-plugin-vertical-align" at top of the file - enables your verticalAlign to whole file
- adding "// @prettier-plugin-vertical-align" above an object - enables your verticalAlign for that object

Cheers

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.