Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
215b1db2fdbb0651a0fdc2e5ee737a461c05b421
1 parent
473e693b
完善 readme
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
README.md
README.md
View file @
215b1db
# JS语法检查
JS语法检查使用Eslint,首先,请全局安装
**eslint**
和配置文件:
`npm i eslint eslint-config-yoho -g`
## 对应问题描述查阅
[
rules
](
http://smocean.github.io/docs/rules/
)
## 语法规则配置
From:
[
eslint-config-yoho
](
https://www.npmjs.com/package/eslint-config-yoho
)
## 禁用检查
/* eslint-disable */
/* eslint-enable */
```
/* eslint-disable */
/* eslint-enable */
```
**原则上只有无法使用 npm 安装的包,复制代码过来的时候可以忽略,自己写的代码必须过检查**
# 项目启动方法
*
拉取代码
*
安装全局包:
`eslint`,`eslint-config-yoho`,`yo`,`generators-yohos`
*
安装本地依赖
*
启动服务进程:当前目录下运行
`npm run start`
*
进入模块的静态资源目录,运行
`gulp`
\ No newline at end of file
-
拉取代码
-
安装全局包:
`eslint`,`eslint-config-yoho`,`yo`,`generators-yohos`
-
安装本地依赖
-
启动服务进程:当前目录下运行
`npm start`
-
进入模块的静态资源目录,运行
`gulp`
...
...
Please
register
or
login
to post a comment