I've noticed Magento2 has Javascript Coding Standards, in which they reference an eslint config file.

Suppose I have an M2 project I'm developing with a large group of folks and I'd like the team to adhere to these standards. How can I leverage this? For example, do I need to make a custom grunt task, or is there one already present somewhere?

Ideally I'd like something like grunt eslint that would look over all the javascript files in the custom theme and extensions.


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.