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

Merge prettier plugins for formatters #613

Closed
3 tasks done
suppayami opened this issue Sep 23, 2024 · 1 comment · Fixed by #614
Closed
3 tasks done

Merge prettier plugins for formatters #613

suppayami opened this issue Sep 23, 2024 · 1 comment · Fixed by #614
Labels
enhancement New feature or request pr welcome

Comments

@suppayami
Copy link
Contributor

suppayami commented Sep 23, 2024

Clear and concise description of the problem

Currently for each supported formatters, the rules overrides plugins field from options.prettierOptions. This makes it hard to use any other prettier plugins, such as prettier-plugin-tailwindcss.

Suggested solution

Merge plugins from prettierOptions with final prettier rules, for example:

antfu({
  formatters: {
    astro: true,
    prettierOptions: {
      plugins: ['prettier-plugin-tailwindcss'],
    },
  },
})

Alternative

Alternative would be this PR, but supporting suggested solution would be easier for most users #592

Additional context

No response

Validations

@suppayami suppayami added the enhancement New feature or request label Sep 23, 2024
@suppayami suppayami changed the title Append prettier plugins for formatters Merge prettier plugins for formatters Sep 23, 2024
@antfu
Copy link
Owner

antfu commented Sep 23, 2024

Sounds good, PR welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants