vue-type-check
vue-type-check copied to clipboard
What if make eslint plugin based on vue-type-check?
Subj
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"
},
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.