Skip to content

Commit ecbd57e

Browse files
committed
[docs][zh] translated linting.md
1 parent a8ae03e commit ecbd57e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/zh/guide/linting.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Linting
1+
# 校验
22

3-
The official [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) supports linting both the template and script parts of Vue single file components.
3+
官方的 [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) 同时支持在 Vue 单文件组件的模板和脚本部分的校验。
44

5-
Make sure to use the plugin's included config in your ESLint config:
5+
请确认在你的 ESLint 配置文件中使用该插件要导入的配置:
66

77
``` js
88
// .eslintrc.js
@@ -13,24 +13,24 @@ module.exports = {
1313
}
1414
```
1515

16-
Then from the command line:
16+
接下来从命令行运行:
1717

1818
``` bash
1919
eslint --ext js,vue MyComponent.vue
2020
```
2121

22-
Another option is using [eslint-loader](https://github.com/MoOx/eslint-loader) so that your `*.vue` files are automatically linted on save during development:
22+
另一个选项是使用 [eslint-loader](https://github.com/MoOx/eslint-loader) 那么你的 `*.vue` 文件在开发过程中每次保存的时候就会自动进行校验:
2323

2424
``` bash
2525
npm install -D eslint eslint-loader
2626
```
2727

28-
Make sure it's applied as a pre-loader:
28+
请确认它是作为一个 pre-loader 运用的:
2929

3030
``` js
3131
// webpack.config.js
3232
module.exports = {
33-
// ... other options
33+
// ... 其它选项
3434
module: {
3535
rules: [
3636
{

0 commit comments

Comments
 (0)