Skip to content

Instantly share code, notes, and snippets.

@DaveMBush
Last active August 1, 2017 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaveMBush/3bc7a2c845a188ee7ba3e2da166e48bc to your computer and use it in GitHub Desktop.
Save DaveMBush/3bc7a2c845a188ee7ba3e2da166e48bc to your computer and use it in GitHub Desktop.
Functional TypeScript
{
...
"scripts": {
"lint": "ng lint --type-check",
...
},
"pre-commit": [
"lint"
],
...
{
"extends": ["tslint-immutable"],
"rulesDirectory": [
"../../../node_modules/codelyzer"
],
"rules": {
/* New rules to enable immutable checks */
"typedef": [true,
"call-signature",
"arrow-call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration",
"object-destructuring",
"array-destructuring"
],
"readonly-keyword": false,
"readonly-array": [true, "ignore-local"],
"no-let": true,
"no-any": true,
/* existing rules follow */
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment