3 ms·
Make It Hard to Write Bad Code
- HaoZeke 9y agoNo 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.
- eliottenos 9y agoSeemed to work fine with me in Atom? What text editor do you use?
- HaoZeke 9y agoI 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.
- botskonet 9y agoYou shouldn't be linting third party code to begin with.
- HaoZeke 9y agoTrue, 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.
- block_chain_ 9y agoI use sublime, works pretty well on that too
- davidjnelson 9y agoeslint and tslint are fantastically helpful tools for code quality.