Angular TS Guide Typescript Coding Style

强制执行 TypeScript 文件的代码风格和最佳实践。

liaosw97 Updated

File contents

  • 代码应遵守 .eslintrc.json.prettierrc.editorconfig 文件中定义的规则。
  • 每行字符数不应超过 80 个。
  • 优先使用 libs/smart-ngrx/src/common/for-next.function.ts 中的 forNext 函数,而不是 for(let i;i < length;i++)forEachfor(x of y)
  • 函数和方法的参数不应超过 4 个。
  • 函数的执行行数不应超过 50 行。

liaosw97/awesome-rules-skills/tree/main/plugins/angular/skills/angular-ts-guide-typescript-coding-style commit 3862d98a63

Frequently asked questions

npx skillmds@latest add liaosw97/angular-ts-guide-typescript-coding-style