Vue 配置

解决vscode中使用Vue自动添加分号;和双引号"

新建.prettierrc文件,在文件中添加:

{
	"semi":false,
	"singleQuote":true
}

配置Vue中使用@设置路径

新建jsconfig.json文件,添加:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*":["./src/*"]
    }
  },
  "exclude": ["node_modules","dist"]
}
posted @ 2022-01-09 10:47  awsoyou  阅读(39)  评论(0)    收藏  举报