wikipendium.no icon indicating copy to clipboard operation
wikipendium.no copied to clipboard

JavaScript coding style convention

Open sigvef opened this issue 12 years ago • 2 comments

We need one! And we need a tool for checking it. And we need to get Jenkins to use that tool.

Current candidates are https://npmjs.org/doc/coding-style.html and http://nodeguide.com/style.html. Both have strong and weak points. A suggestion is to make our own based on these two.

sigvef avatar Aug 18 '13 20:08 sigvef

If we made our own (and I looked around for alternatives now, unsuccessfully), we would also have to make linting tools for it. Can this be done easily? By forking an existing one, perhaps?

I'd say we need at least a tool for vim, and something for Jenkins. Perhaps also sublime text, if someone is using that.

stianjensen avatar Aug 18 '13 20:08 stianjensen

Perhaps we should just use something like JSHint. It is decently customizable (although it does not encompass everything we've discussed), and is quick and easy to integrate.

sigvef avatar Aug 18 '13 21:08 sigvef