Closed veselov closed 8 years ago
Thanks Pawel, landed with some style fix-ups in 2760d5a.
Thank you. If there only was a language that described exactly how style should be implemented, and all (major) editors understood it...
In node.js core we use jslint, which is pretty rigorous. But as most commits in node-iconv are made by me I've never bothered to set it up. :-)
Well, I have issues with jshint, so I use jslint :) I believe jshint does want 4/8 space indentation. There is apparently this : http://jscs.info/ which at least should be solving it with JS. Unfortunately, I don't see how it can actually configure an editor (say vim) to follow the style rules, and doesn't look like I can invoke both jscs and jslint as syntastic checkers :)
Including charset names helps with debugging, avoiding to re-throw, or adding debugging statements arround.