Open adamkudrna opened 3 years ago
@adamkudrna What about to extend those rules with project specific configuration?
Well, because it would be project specific 🙂. I think this is a compatibility issue in configuration of two linters commonly used together. I believe our configs should be mutually compatible, so I filed this bug.
This particular problem may get resolved by #21 (the single-line version is 95 characters long), but it's just a question of time when it bubbles up again.
I think that this is a problem with line width. I have just merged configuration of prettier where we are setting line width to 120, see https://github.com/lmc-eu/code-quality-tools/pull/29.
I think this should fix this issue. Please check it and let me know if this works. Thanks.
Prettier prefers:
Stylelint prefers:
This does not work either:
Workaround: disable either Stylelint or Prettier for that line / code block.
It seems there might be a conflict of
declaration-colon-space-after
anddeclaration-colon-newline-after
Stylelint rules.