how to make PHPStorm fix stylelint issues of css particularly

how to make PHPStorm fix stylelint issues of css particularly. Is there any plugin for that?

I have eslint --fix for that, but I am not sure how to  launch it on current file

0

haven't got what you mean, sorry... ESLint can't be used for linting CSS, it's a JavaScript linter

0
Avatar
Permanently deleted user

stylelint sorry, I need to automate the console task:

stylelint --fix {current css file here}

https://github.com/stylelint/stylelint

0

are you setting it up as external tool in Settings | Tools | External Tools? Then it might look as follows:

 

This tool will be available in file right-click menu, External Tools/stylelint

4
Avatar
Permanently deleted user

Trying to do the same with watcher. Was able to configure it through external tool successfully, but can't do the same with watcher, it doesn't fix file.

0

what does your file watcher look like? Works fine for me using the following settings:

2
Avatar
Permanently deleted user

Tx, already figured out, i had checkbox checked (that says to check only top level files)

1

请先登录再写评论。