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

associations do not overwrite file extensions supported by the plugin. #841

Open
zhylmzr opened this issue Apr 9, 2024 · 0 comments · May be fixed by dprint/dprint-plugin-prettier#80
Open

Comments

@zhylmzr
Copy link

zhylmzr commented Apr 9, 2024

If I override the extension supported by the plugin, then the formatting ignores the files supported by the plugin, which is confusing.

Usually plugins only support one or two extensions, but prettier supports dozens of file extensions, so if I want to add a new file extension to prettier I have to manually type in all the extensions supported by prettier.

{
  "prettier": {
    "associations": [/** all prettier support file extension glob */, "**/*.new_html_extension"],
    "new_html_extension.parser": "html"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant