2

Is there a recommended tool for linting LESS code in Magento2? Interestingly, ESLint Rules are provided for Javascript linting, but when it comes to LESS, all they seem to provide is a coding standard...

I've tried using grunt-eslint, but it seems outdated (last commit was in 2017, and skeptical of its accuracy). There are some errors for example in my tiny starter theme complaining about missing variables, but when I run the LESS compiler it compiles just fine... Not to mention some smaller issues.

So what do folks use when it comes to linting LESS code for M2 projects?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.