DEV Community

Discussion on: Here are Top 5 Best Practices for JavaScript you MUST ALWAYS FOLLOW

 
metalmikester profile image
Michel Renaud

Can you tell me what tools you are using for linting? That would be useful to us since we have been bringing in new people on board (I've been on this project less than three months, some less and new one coming in soon), all with various levels of experience.

Thread Thread
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Sure, let's see, first sass-lint, that fails in CDCI, then we have es-lint with the Airbnb preset (it's a good one) we extended it and turned off a couple of js features that we don't transpile for per reasons. Lastly we have a strange stack with an equally odd templating language which is domain specific, so I adapted htmlhint with some custom rules to lint that (proud). Not all of the linting is switched on to fail CDCI yet and only JavaScript has a commit hook tool. The hook tool is quite new so I don't know the name but I will find out and get back to you.

Thread Thread
 
metalmikester profile image
Michel Renaud

Cool stuff, I'll look into that. Thanks! :)