Skip to content

Instantly share code, notes, and snippets.

@Borzilov
Created April 26, 2020 13:02
Show Gist options
  • Save Borzilov/b9db271019e9411da976e8bd21c407af to your computer and use it in GitHub Desktop.
Save Borzilov/b9db271019e9411da976e8bd21c407af to your computer and use it in GitHub Desktop.
Strict ts-config
/* Strict Type-Checking Options */
{
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
"strictPropertyInitialization": false, /* Enable strict checking of property initialization in classes. */
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
/* Additional Checks */
"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment