70s-Mens-Fashions

Typescript Airbnb Style Guide Optimized for Prettier in One JSON File

The Airbnb Style Guide is one of the most popular and comprehensive set of ESlint rules. Sadly there is no official version for TypeScript, but there is eslint-config-airbnb-typescript. It does all the painstaking work of making the Airbnb linting rules compatible and optimized for TypeScript and TypeScript ESLint. While you can install and set things up the usual way using NPM, if you are using Prettier things get very complex and the dependencies pile up fast. ...

November 16, 2019 Â· 10 min Â· David
pdf-render-4k

TypeScript 3.7 Utility Types | Printable PDF Cheat Sheet

Learning modern TypeScript is not easy, especially when the Language Specification was last updated in Jan 2016. This is eventually going to be remedied with a brand-new version of the handbook, but the pace it is being written is glacial. Much of the current official documentation and general blog based information is outdated too. To add to this horror, well-meaning people seem to have confused the meaning of the words ‘cheat sheet’ with ‘pages of vaguely related information in an unprintable format’. Maybe younger developers have never encountered a ‘printer’ device before? A decrepit antique that feeds on the corpses of dead trees and splits out thin slices of white ‘analogue information’ that requires physical space to store. ...

November 12, 2019 Â· 2 min Â· David