loading...

re: Here are Top 5 Best Practices for JavaScript you MUST ALWAYS FOLLOW VIEW POST

TOP OF THREAD FULL DISCUSSION
re: In our project we have a linter which won't let you commit unless you fix your code. It's a sure fire way of getting everyone to behave the same wa...

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.

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.

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

Code of Conduct Report abuse