Skip to content

Commit 8f4bee9

Browse files
improv: drop support for Vue files
Breaking change. `eslint-plugin-html` should not be used to lint vue files, since the vue puglin is far superior for this usage. Fixes #103
1 parent 84df755 commit 8f4bee9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Settings
113113
### `html/html-extensions`
114114

115115
By default, this plugin will only consider files ending with those extensions as HTML: `.erb`,
116-
`.handlebars`, `.hbs`, `.htm`, `.html`, `.mustache`, `.nunjucks`, `.php`, `.tag`, `.twig`, `.vue`,
117-
`.we`. You can set your own list of HTML extensions by using this setting. Example:
116+
`.handlebars`, `.hbs`, `.htm`, `.html`, `.mustache`, `.nunjucks`, `.php`, `.tag`, `.twig`, `.we`.
117+
You can set your own list of HTML extensions by using this setting. Example:
118118

119119
```javascript
120120
{
@@ -221,5 +221,5 @@ console.log(mydata);
221221

222222
Initially, [`eslint-plugin-vue`](https://github.com/vuejs/eslint-plugin-vue) was using
223223
`eslint-plugin-html` to lint code inside script tags. Since v3, `eslint-plugin-vue` is using its
224-
own parser, so it is *incompatible* with `eslint-plugin-html`. You should remove
225-
`eslint-plugin-html` from your dependencies if you still have this.
224+
own parser, so it is *incompatible* with `eslint-plugin-html`. You should use `eslint-plugin-vue`
225+
exclusively and remove `eslint-plugin-html` from your dependencies if you still have it.

src/settings.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const defaultHTMLExtensions = [
1313
".php",
1414
".tag",
1515
".twig",
16-
".vue",
1716
".we",
1817
]
1918

0 commit comments

Comments
 (0)