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
Please sign in to leave a comment.
haven't got what you mean, sorry... ESLint can't be used for linting CSS, it's a JavaScript linter
stylelint sorry, I need to automate the console task:
stylelint --fix {current css file here}https://github.com/stylelint/stylelint
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
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.
what does your file watcher look like? Works fine for me using the following settings:
Tx, already figured out, i had checkbox checked (that says to check only top level files)