vuejs-templates / browserify

A full-featured Browserify + vueify setup with hot-reload, linting & unit testing.
272 stars 85 forks source link

No `.vue` eslint #47

Closed Kequc closed 7 years ago

Kequc commented 7 years ago

Hello,

I'm trying this template with vue-cli and have everything running relatively without any issue however .vue files seem to allow any formatting.

My indent rule for example is not being adhered to it seems no rules apply.

// .eslintrc
{
  "extends": "standard",
  "rules": {
    "indent": ["error", 4],
    "comma-dangle": ["error", "never"]
  },
  "plugins": [
    "html"
  ],
  "env": {
    "jasmine": true
  }
}

I'm using visual studio code which reports no Eslint loading errors. Regular .js files are being linted correctly. Please tell me what I am doing wrong?

I chose all defaults during scaffolding.

Kequc commented 7 years ago

Sorry. I forgot I opened this issue. The Vetur plugin needs to be added to VSCode to fix the issue.