From 01992008fe48835c7b6584e46eb95046802533eb Mon Sep 17 00:00:00 2001 From: Jared Deckard Date: Mon, 7 May 2018 15:06:23 -0500 Subject: [PATCH 1/2] Document required single file component configuration in the usage section --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 015e2922b..94e6eed68 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,17 @@ module.exports = { } ``` +### Single File Components + +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. + +Examples: + +```bash +eslint --ext .js,.vue src +eslint src/**/*.{js,vue} +``` + ### Attention All component-related rules are being applied to code that passes any of the following checks: From 05a6584ce68b7c166d049e606c2ef32f2be31ecc Mon Sep 17 00:00:00 2001 From: Jared Deckard Date: Sat, 12 May 2018 01:02:32 -0500 Subject: [PATCH 2/2] Document required single file component configuration in the usage section --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 94e6eed68..6f83d6e9f 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ module.exports = { ### Single File Components -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. +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. Examples: