05 2021 档案

摘要:.prettierrc.js 配置如下: module.exports = { // 一行最多 120 字符 printWidth: 120, // 使用 2 个空格缩进 tabWidth: 2, // 不使用缩进符,而使用空格 useTabs: false, // 行尾需要有分号 semi: tr 阅读全文
posted @ 2021-05-28 22:13 savokiss 阅读(1384) 评论(0) 推荐(0) 编辑
摘要:prettier 官方有三个跟 eslint 相集成的工具: https://prettier.io/docs/en/integrating-with-linters.html 它们的具体区别见:https://gist.github.com/savokiss/e5e585f30d3c775a07c 阅读全文
posted @ 2021-05-21 18:56 savokiss 阅读(1180) 评论(0) 推荐(0) 编辑
摘要:_.debounce(sendMail, 300, { leading: true, trailing: false })); 打开 leading,注意关掉 trailing 即可 详见:https://devdocs.io/lodash~4/index#debounce 阅读全文
posted @ 2021-05-07 15:28 savokiss 阅读(506) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示