Skip to content

chore: Update README for prettier v3.x#242

Merged
byara merged 2 commits into
trivago:mainfrom
basselworkforce:updateReadmeForPrettier3
Dec 3, 2024
Merged

chore: Update README for prettier v3.x#242
byara merged 2 commits into
trivago:mainfrom
basselworkforce:updateReadmeForPrettier3

Conversation

@basselworkforce
Copy link
Copy Markdown
Contributor

While testing with prettier v3 I found that it is now necessary to add the plugin to the config with npm (when I never had to before) as per:

module.exports = {
    ...
    "plugins": ["@trivago/prettier-plugin-sort-imports"]
}

https://github.com/trivago/prettier-plugin-sort-imports#usage

@lukeapage
Copy link
Copy Markdown

Confirmed - same for me.

I got warnings about unknown config options and at first I thought this was the issue, but it was because the plugin was no longer auto loaded.

@byara byara changed the base branch from main to v5 December 3, 2024 09:21
@byara byara changed the base branch from v5 to main December 3, 2024 09:22
@byara byara merged commit ea30e7a into trivago:main Dec 3, 2024
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.

5 participants