Skip to content

Commit

Permalink
XS✔ ◾ update typescript config rules (#9016)
Browse files Browse the repository at this point in the history
update typescript config rules

Add details for "noImplicitAny" setting
  • Loading branch information
Ben0189 authored Aug 15, 2024
1 parent 0432a42 commit 7e068fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/good-typescript-configuration/rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Putting a “tsconfig.json” file in your project tells the typescript compiler

### Disable implicit “any”

The primary benefit of TypeScript is type-safety, and attempting to escape from the type-safety should be a conscientious decision by the developer. So ensure that noImplicitAny is true, and keep your code type-aware and able to be refactored.
The primary benefit of TypeScript is type-safety, and attempting to escape from the type-safety should be a conscientious decision by the developer. So ensure that noImplicitAny is true, and keep your code type-aware and able to be refactored. Enabling "noImplicitAny" doesn't mean your project will never use the "any" type. You can still have "any" types if you explicitly declare them. For more on the difference between implicit and explicit typing in TypeScript, check out the [different between explicit and implicit typing](https://www.schibsted.pl/blog/typescript-type-inference).

### Exclude external files

Expand Down

0 comments on commit 7e068fa

Please sign in to comment.