I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in advance.
Asked
Active
Viewed 3,676 times
5 Answers
2
See EditorConfig. This tool is not limited to js though; You first install the plugin for your editor (there is an emacs plugin), and create a file named .editorconfig
, whose content is the coding style.

xuhdev
- 8,018
- 2
- 41
- 69
1
I've recently updated the CodePainter project to work tightly with EditorConfig, so you can get the best of both worlds with JavaScript.
Please, spread the word. The project could use more traction and I could use more help.

jedmao
- 10,224
- 11
- 59
- 65
1
Google JavaScript pretty print and JavaScript lint. Plenty of options, including JavaScript Lint and JSLint, among others.
-
1JSHint is not code style tool, rather than code quality tool. Yes, it has some whitespace checking but it's not configurable by any means. – crappish May 15 '14 at 14:45
-
People already know how to Google, telling them to Google it is not helpful. Furthermore, JSLint is not a code style tool: it enforces only one code style (Douglas Crockford's). JSHint is not much better in that regard. – machineghost May 23 '14 at 21:38
0
You're probably looking for the JS Code Sniffer: https://npmjs.org/package/jscodesniffer#a-standard

Clovis Six
- 309
- 2
- 4