-
Notifications
You must be signed in to change notification settings - Fork 28
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
Upgrade prettier and prettier-plugin-ember-template-tag #180
Conversation
as of 07f6666, for the npm scenarios
It seems that this is inescapable without splitting eslint and prettier into separate commands (because then the plugin isn't needed). Additionally,
|
hi, why is lint only run for npm? anyway, it looks like eslint-plugin-prettier is not directly installed, but indirectly by ember-cli. but its 4.x |
v5 is present in the addon's package.json |
why would it need to? that's the project root, which doesn't run eslint |
ah, then it needs to be updated in the blueprints themselfs? "eslint-plugin-prettier": "^5.0.0",
"stylelint-prettier": "^4.0.2", it passes linting, but this is probably just overwriting the deps from the workspaces |
this: https://github.com/ember-cli/ember-cli/blob/master/blueprints/app/files/package.json#L98 |
that's probably accurate -- npm doesn't great dep management -- but then also eslint and prettier both expect their dependencies to be at the root of the monorepo, instead of relying on the actual dep graph, so it makes fixing stuff like this super annoying.. So, we need to get the app and addon blueprints in ember-cli using prettier v3, and then npm will be fixed, probably. |
this does mean, however, that, if we wait for ember-cli, we have broken GTS for ~ 7 weeks 😅 #184 So I'm not really sure what to do here. 🤔
What are folks thoughts? |
it looks like thats already beeing done for pnpm? |
…e it is required with the prettier v3 jump
07f6666
to
6f3e23f
Compare
gets the latest patches.
As-is, I've seen gts files just.... have their contents be deleted without this change.
Resolves: #184
However, this issue is still open: ember-tooling/prettier-plugin-ember-template-tag#113
But that's independent of this repo.
People are working on it though: prettier/prettier#15079
"a" workaround: ember-tooling/prettier-plugin-ember-template-tag#113 (comment)
resolved problems
BLOCKED: ember-cli's app blueprint needs to use prettier 3 before this PR will succeedNo longer blocked: https://github.com/ember-cli/ember-cli/blob/master/blueprints/app/files/package.json#L102
After upgrading
prettier
,prettier-plugin-ember-template-tag
,eslint-plugin-prettier
, andeslint-config-prettier
, this problem remains:#180 (comment)