Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template interpolation with custom eslint setup #1293

Closed
3 tasks done
P4sca1 opened this issue May 14, 2019 · 0 comments
Closed
3 tasks done

Template interpolation with custom eslint setup #1293

P4sca1 opened this issue May 14, 2019 · 0 comments

Comments

@P4sca1
Copy link
Contributor

P4sca1 commented May 14, 2019

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: macOs
  • Vetur version: 0.20.0
  • VS Code version: 1.33.1

Problem

I want to use the new template interpolation feature for my Vue / TypeScript project.
It works fine with

"vetur.validation.template": true,
"vetur.experimental.templateInterpolationService": true,

however I am using a custom eslint setup with eslint-plugin-vue.
Therefore as stated in the documentation I disabled vetur.validation.template, which results in no TypeScript errors being shown in the template (I get type info though).
Is there any way to make the new feature work with a custom eslint setup?

Reproducible Case

Set

"vetur.validation.template": false,
"vetur.experimental.templateInterpolationService": true,

in your .vscode/settings.json.

Configure eslint for TypeScript and Vue. Example config:

{
  "env": {
    "es6": true,
    "node": true,
    "browser": true
  },
  "extends": [
    "plugin:@typescript-eslint/recommended",
    "plugin:vue/recommended",
  ],
  "plugins": ["@typescript-eslint", "vue"],
  "parserOptions": {
    "parser": "@typescript-eslint/parser",
    "ecmaVersion": 2018,
    "sourceType": "module",
    "project": "./tsconfig.json",
    "extraFileExtensions": ["vue"]
  },
}
@P4sca1 P4sca1 changed the title Template interpolation with eslint-plugin-vue Template interpolation with custom eslint setup May 14, 2019
@octref octref closed this as completed in 923dcb4 Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants