vue-type-check icon indicating copy to clipboard operation
vue-type-check copied to clipboard

What if make eslint plugin based on vue-type-check?

Open nibytes opened this issue 5 years ago • 2 comments

Subj

nibytes avatar Nov 30 '19 17:11 nibytes

Yes, hope it can be integrated with Vue CLI generated projects easily and smoothly. At the moment, I just use it in lint-staged with npm scripts npm run lint:template :

  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:unit": "vue-cli-service test:unit",
    "lint": "vue-cli-service lint",
    "lint:template": "vue-type-check --workspace ./ --srcDir ./src"
  },

kenberkeley avatar Jan 10 '20 05:01 kenberkeley

Since the implementation is based on vetur which runs relatively slow without incremental checking support, I'm not sure it could be integrated with real-time lint tools easily.

Currently, I'm also using it in the commit hooks.

Yuyz0112 avatar Jan 10 '20 06:01 Yuyz0112