You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/zh/guide/linting.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# Linting
1
+
# 校验
2
2
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.
Make sure to use the plugin's included config in your ESLint config:
5
+
请确认在你的 ESLint 配置文件中使用该插件要导入的配置:
6
6
7
7
```js
8
8
// .eslintrc.js
@@ -13,24 +13,24 @@ module.exports = {
13
13
}
14
14
```
15
15
16
-
Then from the command line:
16
+
接下来从命令行运行:
17
17
18
18
```bash
19
19
eslint --ext js,vue MyComponent.vue
20
20
```
21
21
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:
0 commit comments