BenoitZugmeyer / eslint-plugin-html

An ESLint plugin to extract and lint scripts from HTML files.
ISC License
430 stars 51 forks source link

vue jsx no-unused-vars error #29

Closed zyy7259 closed 8 years ago

zyy7259 commented 8 years ago

When using vue jsx, Atom gives me many no-unused-var errors.

image

I don't know if it's ok to report this issue here, please help.

BenoitZugmeyer commented 8 years ago

This plugin lints JavaScript contained inside HTML files. It appears that vue jsx files are not HTML files. You should use eslint-plugin-react with the rule react/jsx-uses-vars to fix your issue.

zyy7259 commented 8 years ago

thx~