JS语法检查
JS语法检查使用Eslint,首先,请全局安装eslint和配置文件:npm i eslint eslint-config-yoho -g
对应问题描述查阅
语法规则配置
From: eslint-config-yoho
禁用检查
/* eslint-disable */
/* eslint-enable */
Name | Last Update |
Last Commit
5f2fffd0
–
完善错误日志收集
History
|
---|---|---|
bin | Loading commit data... | |
library | 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... |
JS语法检查使用Eslint,首先,请全局安装eslint和配置文件:npm i eslint eslint-config-yoho -g
From: eslint-config-yoho
/* eslint-disable */
/* eslint-enable */