kungfusheep / SublimeLinter-contrib-stylelint

this repo is no longer maintained - please see https://github.com/SublimeLinter/SublimeLinter-stylelint
MIT License
116 stars 19 forks source link

Support .stylelintrc yaml syntax #7

Closed Nitive closed 8 years ago

Nitive commented 8 years ago

Now yaml syntax doesn't work Sublime console output:

SublimeLinter: stylelint output:
undefined:1
rules:
^

SyntaxError: Unexpected token r

It happens because you parse file with JSON.parse stylelint_wrapper.js#L11 Stylelint use cosmiconfig to get config. Can I create PR to replace JSON.parse with cosmiconfig?

kungfusheep commented 8 years ago

Hi - I've updated the wrapper to use the stylelint CLI where available, so this should start to work now given that the wrapper won't attempt to read the rc if it detects it will be using the CLI. Cheers

Nitive commented 8 years ago

Thanks!