AtomLinter / linter-stylint

Linter plugin for Stylus, using `stylint`
9 stars 5 forks source link

Linter only runs on save, not on type. #78

Open yourfavorite opened 7 years ago

yourfavorite commented 7 years ago

Despite having the Lint as you Type setting enabled for linter, stylint only seems to run when I save a file. I do not have this issue with my js files in the project. It seems to be isolated to linter-stylint. I have tried this both with my own config as well as the "strict mode" where no config file is needed.

Arcanemagus commented 7 years ago

That setting for Linter merely enables the ability to lint on the fly, it's up to the individual providers whether or not to support that functionality. In this case it seems that stylint is unable to run on contents being piped into it via stdin, so that functionality is disabled.

If stylint supports linting contents passed into it via stdin, then this can be modified to enable that functionality, but for now this is working as intended.

yourfavorite commented 7 years ago

Ah I see. Thanks for the info. So I guess this should be filed as a feature request? Perhaps there are constraints that make it an unlikely addition, but I personally would enjoy the feature. Thanks again!