干净的代码:开源代码检查与格式化
原文英文,约1100词,阅读约需4分钟。发表于: 。For this week, we were tasked to choose a linter, a formatter, and to add a CONTRIBUTING.md file for our project! Personally, I always consider adding a formatter and a linter to be one of the...
本周我选择了Prettier作为格式化工具,ESLint作为代码检查工具,并添加了CONTRIBUTING.md文件。同时,我尝试了Oxc作为新的代码检查工具,并使用Husky和lint-staged实现了提交前检查。这些措施有助于保持代码整洁和可维护。