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

feat: append '*.parser' to file extensions #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhylmzr
Copy link

@zhylmzr zhylmzr commented Apr 15, 2024

Previously, if I wanted to format new extension files like ".wxml" using Prettier, I had to use the following configuration

"prettier": {
    "associations": [
        "**/*.{js,ts,less,json}",
        /** and any file extension that you want to format and is supported by Prettier.  */
        "**/*.wxml"
    ],
    "wxml.parser": "html"
}

After this feature, there is no need to manually configure the 'associations' anymore.

"prettier": {
    "wxml.parser": "html"
}

fixed: dprint/dprint#841

@CLAassistant
Copy link

CLAassistant commented Apr 15, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

associations do not overwrite file extensions supported by the plugin.
2 participants