vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

stylelint scss: -s option not available anymore in recent stylelint versions #2384

Closed phloxic closed 2 years ago

phloxic commented 2 years ago
$stylelint --version
14.0.1
$ stylelint -f json -s scss somefile.scss | head -1
Error: The "syntax" option is no longer available. You should install an appropriate syntax, e.g. postcss-scss, and use the "customSyntax" option

It seems to work when I just omit -s scss.

phloxic commented 2 years ago

FWIW, my stylelintrc is mainly extending stylelint-config-standard-scss which is probably one way to replace the commandline option.

lcd047 commented 2 years ago

Thank you for letting me know, I removed the checkers less/stylelint and scss/stylelint (commit 2c4b33f6). There are probably better ways to fix this, but syntastic is dead (you should consider switching to ALE), and I don't have time to attempt to understand what was the point of -s, what would be a reasonable replacement for it, and how that would play with syntastic. Sorry about that.

phloxic commented 2 years ago

@lcd047 - oh, did not realize I was working with a zombie ;-)

I'll look into migrating my habits to ALE then.

FWIW, this https://github.com/stylelint/stylelint/blob/14.0.0/docs/migration-guide/to-14.md sums up the changes for stylelint v14.

Thanks.