![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue3.0+typescript配置项目
yijun_zeng
努力每天都写一篇博客来记录自己的学习情况
展开
-
vue cli3 创建typescript项目
一、创建项目(基于cli3+) --若cli版本不对,请卸载后重新安装 命令行:vue create <name> 安装的自定义选项,查看下图 二、安装后,配置项目的eslint+prettier 1、配置.prettierrc.js 代码检查工具选择了Eslint+Prettier时,ESlint与Prettier相冲突的配置项会被关闭,采用的是Prettie...原创 2019-11-05 18:55:17 · 857 阅读 · 0 评论 -
Vue3.0报错error: Unexpected console statement (no-console) 解决办法
写项目过程中用ESlint遵守代码规范 代码规范不能用console 如果要使用console来调试代码,修改package.json中的eslintConfig:{}中的 “rules”:{},增加一行代码: "no-console":"off" 示例: "eslintConfig": { "root": true, "env": { "node": tr...转载 2019-11-05 11:30:15 · 926 阅读 · 0 评论