Skip to content

AmosC/typescript-guidelines

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

186 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Guidelines

This guideline focus on how to write effective TypeScript with the minimal effort. It touches on coding style, linting, to recommendation on writing good typings and writing TypeScript code.

Watch this repo

I'll periodically update this repo. To get notified, click the watch button.

Design Principles

  • Get the best out of TypeScript
  • Stay close to JavaScript as much as possible
  • Embrace latest JavaScript syntax
  • Cross-compatibility with tools. In my company, we embrace diversity and support team members to use their favorite IDEs. However it is really frustrating when the tools do not get along with each other!

Disclaimer

Recently I do most of my work in VS Code. So if you find that some of the guidelines doesn't work well in your IDE, let me know and we can see how to get it working on your IDE.

Table of Contents

Contributing

  • Follow the markdown style guide

  • Each section heading should be neutral, e.g. "var keyword" instead of "avoid var"

    Why? The heading would be used as link. So if the style guide suggestion changes, keeping the heading neutral would avoid broken links.

About

TypeScript writing guidelines

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors