Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 lint-staged 和 husky 在提交之前对所有暂存文件运行 linter。但是我的代码库很旧;所以现在不想对现有(修改过的)文件运行 linter。有没有办法只针对新创建(添加)的文件运行 linter?