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
* Document required single file component configuration in the usage section
* Document required single file component configuration in the usage section
Copy file name to clipboardExpand all lines: README.md
+11
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,17 @@ module.exports = {
45
45
}
46
46
```
47
47
48
+
### Single File Components
49
+
50
+
ESLint only targets `.js` files by default. You must include the `.vue` extension using [the `--ext` option](https://eslint.org/docs/user-guide/configuring#specifying-file-extensions-to-lint) or a glob pattern.
51
+
52
+
Examples:
53
+
54
+
```bash
55
+
eslint --ext .js,.vue src
56
+
eslint src/**/*.{js,vue}
57
+
```
58
+
48
59
### Attention
49
60
50
61
All component-related rules are being applied to code that passes any of the following checks:
0 commit comments