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

fix: remove clumsy prettier plugin hoisting #417

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Conversation

alexeagle
Copy link
Member

@alexeagle alexeagle commented Oct 22, 2024

It didn't work correctly because bazel run does not use a sandbox, so prettier finds the config file in the source tree and then finds node_modules in the source tree. Instead the plugin loading should be explicit, and point prettier at the right config file

Fixes #176

alexeagle added a commit to aspect-build/aspect-workflows-template that referenced this pull request Oct 22, 2024
It didn't work correctly because prettier runs outside the sandbox and finds node_modules in the source tree.
Instead the plugin loading should be explicit, and point prettier at the right config file
@alexeagle alexeagle merged commit ce99c2b into main Oct 23, 2024
7 checks passed
@alexeagle alexeagle deleted the prettier-plugins branch October 23, 2024 23:07
alexeagle added a commit to aspect-build/aspect-workflows-template that referenced this pull request Oct 24, 2024
* chore: upstream aspect-build/rules_lint#417

* Update BUILD.bazel

* Update prettier.config.cjs

* Update prettier.config.cjs
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.

[Bug]: how do prettier plugins work?
2 participants