{
"Print to console": {
"prefix": "vue TypeScript Template",
"body": [
"<template>\n\t<div>\n\n\t</div>\n</template>\n",
"<script lang=\"ts\">\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component\nexport default class ${1:ClassName} extends Vue{\n$0\n}\n</script>\n\n",
"<style lang=\"scss\" scoped>\n\n</style>"
],
"description": "自定义vue+typescript模板"
}
}
// "error Delete ⏎
prettier/prettier" in .vue files
解决
在vuejs项目中,运行如下命令解决:
npm run lint --fix