BenoitZugmeyer / eslint-plugin-html

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

ESlint in VScode WHAT'S WRONG? #93

Closed Tonysmark closed 6 years ago

Tonysmark commented 6 years ago
Zazck commented 6 years ago
npm uninstall eslint eslint-plugin-html
npm ln eslint@^4.19.1
npm ln eslint-plugin-html@^4.0.3
lee-alderdice commented 6 years ago

I am having this same issue. I have checked npm outdated and run updates as needed and with the simplest package.json I can't get this working.

{ "extends": "standard", "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 6, "sourceType": "module" }, "plugins": [ "vue", "html" ], "env": { "browser": true, "node": true, "es6": true, "mocha": true } }

BenoitZugmeyer commented 6 years ago

I'm sorry but I can't reproduce your issue. Please provide a full stack trace with paths of the plugin and eslint.

Also, you should not need the html plugin when using vue: if you only lint .vue files, just remove the html plugin.

Zazck commented 6 years ago

@lee-alderdice I forgot how I figure this out, what I still remember is that problem may caused because you installed a wrong version eslint locally. problem solved after I execute that command in project folder