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

Is there a way to ignore a specific rule? [Possible Feature] #9171

Closed
ColtHands opened this issue Sep 9, 2020 · 3 comments
Closed

Is there a way to ignore a specific rule? [Possible Feature] #9171

ColtHands opened this issue Sep 9, 2020 · 3 comments
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@ColtHands
Copy link

Problem

Right now prettier checks and writes for all rules that it has, but it does not have an option to ignore a rule.
For example i don't need to check if there is trailing comma or not in my code, but need to check for other things like semicolons and tabWidth.

There is also another problem: check finds if specific file has a problem, it doesnt specify what problem it is, or on what line it occurs, it just prints [warn] mycode.ts.

@alexander-akait
Copy link
Member

alexander-akait commented Sep 9, 2020

Right now prettier checks and writes for all rules that it has, but it does not have an option to ignore a rule.

There is also another problem: check finds if specific file has a problem, it doesnt specify what problem it is, or on what line it occurs, it just prints [warn] mycode.ts.

Prettier doesn't have rules and will never have

@ColtHands
Copy link
Author

Prettier doesn't have rules and will never have

But it has options, there will never be an option ignore? And what about verbose check printing?

@alexander-akait
Copy link
Member

But it has options, there will never be an option ignore?

Never

And what about verbose check printing?

https://prettier.io/docs/en/cli.html#--list-different

@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Dec 9, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

2 participants