Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-loader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pi-plusplus
fork-from-github
vue-loader
Commits
b556598e
Unverified
Commit
b556598e
authored
May 12, 2018
by
勾三股四
Committed by
GitHub
May 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update linting.md
parent
bc30c088
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
linting.md
docs/zh/guide/linting.md
+3
-3
No files found.
docs/zh/guide/linting.md
View file @
b556598e
# 校验 (Linting)
#
代码
校验 (Linting)
官方的
[
eslint-plugin-vue
](
https://github.com/vuejs/eslint-plugin-vue
)
同时支持在 Vue 单文件组件的模板和脚本部分的校验。
官方的
[
eslint-plugin-vue
](
https://github.com/vuejs/eslint-plugin-vue
)
同时支持在 Vue 单文件组件的模板和脚本部分的
代码
校验。
请确认在你的 ESLint 配置文件中使用该插件要导入的配置:
...
...
@@ -19,7 +19,7 @@ module.exports = {
eslint
--ext
js,vue MyComponent.vue
```
另一个选项是使用
[
eslint-loader
](
https://github.com/MoOx/eslint-loader
)
那么你的
`*.vue`
文件在开发过程中每次保存的时候就会自动进行校验:
另一个选项是使用
[
eslint-loader
](
https://github.com/MoOx/eslint-loader
)
那么你的
`*.vue`
文件在开发过程中每次保存的时候就会自动进行
代码
校验:
```
bash
npm
install
-D
eslint eslint-loader
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment