Closed jyboudreau closed 5 years ago
According to the issue you've posted the solution is to add "prettier/standard"
to your extends list in .eslintrc
👍 That does work. Thanks for the workaround, however I would still consider this a bug with prettier-standard.
Since prettier-standard is a formatter and not a linter, it seems that it should be compatible with the standard linter ruleset as is without disabling inconvenient rules. After all, it's a replacement for prettier, not standard.
I understand however that it's not necessarily easy to marry the two since standard also likes to be a formatter 😉
This is not a workaround, but a solution. standard isn't able to fix this whitespace automatically.
Since standard doesn't allow customization of rules, this means this package is incompatible with standard. Maybe that's fine, but then it raises an additional question:
If we can't use standard with this package and have to use ESLint for linting instead, then why not just use prettier-eslint?
you can
prettier-standard 9.0.0 now uses just prettierx for formatting and we recommend using https://github.com/prettier/eslint-config-prettier in .eslintrc to disable any non-compatible whitespace rules set by standard. unfortunately it's not possible to have true 1:1 match between prettier and standard, but we're pretty close :) you can contribute or raise issues to https://github.com/brodybits/prettierx to fix remaining incompatibilities
unfortunately it's not possible to have true 1:1 match between prettier and standard
@sheerun does it mean that some of rules should be disabled to prevent conflicts with eslint-config-standard
and eslint-confit-standard-jsx
I see indent
and react/jsx-curly-newline
have conflicts at the moment, so can I just disable them and rely on prettier-standard
instead?
When linting with standard, prettier-standard formatting conflicts with the rule standard/computed-property-even-spacing.
Similar to https://github.com/prettier/eslint-config-prettier/issues/29
Prettier standard wants this:
While standard wants: