Skip to content

Commit

Permalink
improv: drop support for Vue files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
BenoitZugmeyer committed Nov 11, 2018
1 parent 84df755 commit 8f4bee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ Settings
### `html/html-extensions`

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

```javascript
{
Expand Down Expand Up @@ -221,5 +221,5 @@ console.log(mydata);

Initially, [`eslint-plugin-vue`](https://github.com/vuejs/eslint-plugin-vue) was using
`eslint-plugin-html` to lint code inside script tags. Since v3, `eslint-plugin-vue` is using its
own parser, so it is *incompatible* with `eslint-plugin-html`. You should remove
`eslint-plugin-html` from your dependencies if you still have this.
own parser, so it is *incompatible* with `eslint-plugin-html`. You should use `eslint-plugin-vue`
exclusively and remove `eslint-plugin-html` from your dependencies if you still have it.
1 change: 0 additions & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const defaultHTMLExtensions = [
".php",
".tag",
".twig",
".vue",
".we",
]

Expand Down

0 comments on commit 8f4bee9

Please sign in to comment.