arcanis/eslint-plugin-arca

Prettier conflict

Closed this issue · 3 comments

How can I make this work with Prettier (in VSCode) ?

If I save a file, for a moment it renders the "arca/import-align" rule correctly, but then Prettier reformats it (I guess) back to 'normal'.

Is this possible?

Some rules are compatible with Prettier (like sorting the imports), others not (like aligning them). That's the problem of Prettier; it's doesn't integrate amazingly well with other automated rules 😕

Is it possible to format code without Prettier? Can ESLint do this? I am not quite sure....

Sure it can - many rules have autofixes (all those with a checkmark). It's a bit more work to find all those that makes a decent autoformatting experience, but you have more control.