goldbergyoni / nodebestpractices

:white_check_mark: The Node.js best practices list (July 2024)
https://twitter.com/nodepractices/
Creative Commons Attribution Share Alike 4.0 International
100.63k stars 10.2k forks source link

feat: add eslint rules tips of 2.2 仅使用内建的错误对象 in README.chinese #1280

Open fkworld opened 1 year ago

fkworld commented 1 year ago

2.2 English source part:

There is no-throw-literal ESLint rule that strictly checks that (although it has some limitations which can be solved when using TypeScript and setting the @typescript-eslint/no-throw-literal rule)