Code smells are a result of unclean or misguided programming. Code smells have many severities, from minor code smells to code smells that maybe acceptable. Clean Up Code Smell with Clean Code: TypeScript Edition Common Code Smells in JavaScript and TypeScript and How To Fix Them What is a code Smell?
Table of contents
Clean Up Code Smells with Clean Code: TypeScript EditionWhat is a Code Smell?Code Smell in JavaScript and TypeScriptRedundant casts and non-null assertions should be avoidedTernary operators should not be nestedArray-mutating methods should not be used misleadinglyAssignments should not be redundantDo not abuse “Any” in TypeScriptType aliases should be used“undefined” should not be passed as the value of optional parametersRegular expressions should not contain multiple spaces“delete” should not be used on arraysImports from the same modules should be mergedConclusionBuild apps with reusable components like Lego3 Comments
Sort: