Name Last Update
bin Loading commit data...
config Loading commit data...
doc Loading commit data...
library Loading commit data...
middleware Loading commit data...
models Loading commit data...
public Loading commit data...
routes Loading commit data...
util Loading commit data...
views Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.stylelintrc Loading commit data...
README.md Loading commit data...
app.js Loading commit data...
package.json Loading commit data...
router.js Loading commit data...
web-router.js Loading commit data...

JS语法检查

JS语法检查使用Eslint,首先,请全局安装eslint和配置文件:npm i eslint eslint-config-yoho -g

对应问题描述查阅

rules

语法规则配置

From: eslint-config-yoho

禁用检查

/* eslint-disable */
/* eslint-enable */

原则上只有无法使用 npm 安装的包,复制代码过来的时候可以忽略,自己写的代码必须过检查

项目启动方法

  • 拉取代码
  • 安装全局包:npm i -g yo generator-yohos
  • 安装本地依赖
  • 启动 Web Server 服务进程:当前目录下运行npm start
  • 进入模块的静态资源目录,运行gulp