Hacker News new | ask | show | jobs
Make It Hard to Write Bad Code (javascript.works-hub.com)
9 points by eliottenos 3138 days ago
3 comments

No no no. Linters. God. I tried them and none of them managed to play nice with all the various libraries... All I got was a mass of ugly highlighted 'wrong' code.

This after I painstakingly made my own linting rules.

Seemed to work fine with me in Atom? What text editor do you use?
I use sublime, but I meant that each third party library has their own idea of linting, some use BEM some use camelCase etc.. There's no way to consistently lint them all.

Linting is a great idea in theory but in practice there are way too many 'correct' approaches to writing code.

You shouldn't be linting third party code to begin with.
True, but for that I'd need to constantly ignore files from my linter.. Also not an ideal solution.

To clarify this happens more for sass or css projects where variables need to be set according to the base library and linters go nuts over them.

eslint and tslint are fantastically helpful tools for code quality.
I use sublime, works pretty well on that too