前言 在团队协作开发中,为了统一代码风格,避免一些低级错误,应该设有团队成员统一遵守的编码规范.很多语言都提供了Lint工具来实现这样的功能,JavaScript也有类似的工具:ESLint.除了可以集成到构建工具中(如:Gulp)在构建过程中检查代码风格以外:还可以通过将ESLint和代码编辑器相结合以提供代码风格的实时校验.这里将介绍如何在Visual Studio Code使用ESLint来提供代码风格的实时校验. 安装 Visual Studio Code ESLint 插件 打开 Vi
Chinese translated version of Documentation/CodingStyle If you have any comment or update to the content, please post to LKML directly. However, if you have problem communicating in English you can also ask the Chinese maintainer for help. Contact