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
--prettier overrides {"prettier/prettier": "off"} in rules #512
Comments
What's the purpose of turning off |
I use the Prettier CLI to check all the files Prettier supports in my project. I don't want both the check-format and lint jobs in CI to fail. |
I don't get it, that doesn't seem to answer Sindre's question. What's the point of setting it to true if you disable it afterwards? What's even the intended outcome for XO? In projects where I have both the Prettier CLI and XO, I just use |
There is more to the Prettier integration than just the |
What would that be?
|
Using |
Lines 412 to 421 in 3a4c9c9
If you're going to set {
"extends": "plugin:prettier/recommended"
} Asking XO to first run Feel free to reopen if this is considered a bug though. |
I wouldn't consider this a bug, but I'd love a way to disable conflicting prettier rules (which is the role of Personally, I find it much nicer to just let prettier format on save silently than showing an error/warning in the IDE. Formatting should be just handled but surfacing a warning means I have to pay attention to something. I've tried to solve this by just enabling the
However, because the typescript rules are applied after, this causes fights between Lines 356 to 359 in 1245088
I'm happy to file this as a separate issue, but figured the original discussion was relevant. I'm also happy to contribute a PR once the direction is nailed down. |
This should turn off the
prettier/prettier
rule while still enabling Prettier mode in XO, but instead the rule remains enabled.The text was updated successfully, but these errors were encountered: