Open codectl opened 2 months ago
What do you mean by conflict
? prettier
will not add new lines at all.
@JounQin Not sure OP came here with the same issue as I have but prettier
basically overwrites 2 newlines with 1, so it doesn't respect that rule for some reason.
Sorry, but that's how prettier
works that it prints codes on its own style, so two empty lines will be reprinted as one line.
Or do you mean we should disable import/newline-after-import
in this config?
To me, this issue sounds like a feature request for supporting the eslint-plugin-import plugin (and its fork?). For import/newline-after-import
, it looks safe to use with Prettier as long as you set it to 1 empty line (not more), so it would need a validator and “special rule” docs.
I have the following set of rules:
Which results in an error: