Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 88b1f2d

Browse files
deckar01michalsnik
authored andcommitted
[Docs] Single File Component Usage (#473)
* Document required single file component configuration in the usage section * Document required single file component configuration in the usage section
1 parent 30f94f8 commit 88b1f2d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ module.exports = {
4545
}
4646
```
4747

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+
4859
### Attention
4960

5061
All component-related rules are being applied to code that passes any of the following checks:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /