nvimdev / guard-collection

collection the tools config for guard
MIT License
31 stars 9 forks source link

Add stylelint linter #8

Closed sirreal closed 1 year ago

barrett-ruth commented 1 year ago

it doesn't look like you're testing the changes, given that the code doesn't even run. You need to add the linter config to linter/init.lua to expose it to guard.nvim just like all the other linters do.

This is an unecessary step I will code a fix up for right now, since you shouldn't have to. Sorry about that.

In the meantime, I think you should use the find flag again to not queue the linter according to the specs.

sirreal commented 1 year ago

The find here is a bit tricky because of:

Stylelint expects a configuration object, and looks for one in a:

stylelint property in package.json

We may or may not want to stop at a package.json. I could add a find for the other stylelint specific files, I'll do that.