实现JavaScript编码风格的工具 [英] Tools to enforce a coding style for Javascript
本文介绍了实现JavaScript编码风格的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要自动检查不同人撰写的JavaScript源代码的样式。你知道一个好的工具吗?与emacs的集成将是一个加分。先谢谢。
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.
推荐答案
请参阅 EditorConfig 。这个工具不限于js;您首先要安装编辑器的插件(有一个emacs插件),然后创建一个名为<$ c $的文件c> .editorconfig ,其内容是编码风格。
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.
这篇关于实现JavaScript编码风格的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文