-
Notifications
You must be signed in to change notification settings - Fork 509
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
How can I get rid of prettier completely? #1128
Comments
Unfortunately there is no way of getting rid of it completely at this time, due to TSDX's current highly coupled nature (it's incredibly problematic; I didn't design it -- c.f. one of my early PRs #407). Some of the issues you've linked were methods of slowly decoupling TSDX. What might interest you is disabling the Prettier rules from ESLint, which you can do with one-line in your ESLint config per #498 (comment) |
Interesting, what does this rule do? It disables prettier checking within eslint, or does it disable prettier itself, so prettier does NO formatting at all? |
TSDX currently only has a So disabling Prettier checks within ESLint means that |
It's been few years since I was setting that up, I may need to refresh my knowledge. I thought that it's just extending prettier rules, so that you don't get errors in IDE for prettier related issues. I was under the impression that prettier fixes everything regardless of any errors displayed in IDE. Anyway I was just going through this https://prettier.io/docs/en/integrating-with-linters.html, so tsdx uses something like That's awesome. But I assume this rule Thanks! PS: I managed to disable prettier with |
Yup exactly.
I don't totally know how
Yea, it's turning
That works too I suppose 👍 Closing this out as the symptoms have been resolved and the root cause already has a few issues open for it to decouple parts of TSDX |
Current Behavior
Working with prettier is PITA. I don't like how it formats my code.
Desired Behavior
I would like to get rid of it completely. What can I do about it?
Suggested Solution
tsdx lint
totsdx format
.Who does this impact? Who is this for?
It will only affect powerusers who like to control their configurations.
Describe alternatives you've considered
.prettierignore
Additional context
#917
#634
The text was updated successfully, but these errors were encountered: