earthworm icon indicating copy to clipboard operation
earthworm copied to clipboard

chore: add picocolors modules & delete useless log

Open BambooSword opened this issue 1 year ago • 2 comments

  1. 引用picocolors包,虽然在vite库中有关于该包的引用,但是最好还是把该引用放到自己的项目中更安全,且lint检测会报红。
  2. 删除无用的console.log. 使用 模版字符串``可以实现换行效果,没必要为了换行而专门使用一个log.

BambooSword avatar May 16 '24 10:05 BambooSword

@BambooSword 你好,想问下 “且 lint 检测会报红” 是关于什么的检测,能提供图片查看吗?

fengstats avatar May 18 '24 20:05 fengstats

@BambooSword 你好,想问下 “且 lint 检测会报红” 是关于什么的检测,能提供图片查看吗?

image 如果不在 项目中引入 且 通过 node包查找策略找不到包的话就会报这个错误。

如果你本地项目没有这个报错,或许你可以

  1. 确保自己的项目是不会通过向上查询 找到 picocolors,从而导致意外不报红
  2. 确保 全局包内没有 picocolors 这个库。

BambooSword avatar May 22 '24 13:05 BambooSword

LGTM!

fengstats avatar May 29 '24 21:05 fengstats