Answer the question
In order to leave comments, you need to log in
Gulp-stylelint and less - are they needed at all?
Greetings,
I started using for the frontend under magento2 here are the tools from Rocketweb - you can see it on github .
So, if you look at the gulp config, less is checked for errors before compilation using gulp-stylelint.
Well, he dumped 1600+ errors for me - all these are indents, empty lines, or vice versa, there is no line where it should be, etc., etc.
Magento2 has its own styles to hell and more, plus modules in which the developers didn’t give a damn about cleanliness, and he himself is somewhat weaned from the severity that is required in the same sass.
Stylelint itself does not fix these errors, but only finds them. You can probably bring these less files to perfection with some kind of prettify plugins, the question is - is it necessary? Well, that is, if the less files compile normally, the code that I wrote for me and my colleagues is absolutely normal, especially since all the css are minified in magento production?
All other tasks work fine, I turned off stylelint for the time being - I don’t see any special problems, so the question is more for a complete understanding - what if my conclusions are incorrect and stylelint is still needed for something else, and not just for fixing errors in the code.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question