Last active
August 1, 2017 12:54
-
-
Save DaveMBush/3bc7a2c845a188ee7ba3e2da166e48bc to your computer and use it in GitHub Desktop.
Functional TypeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"scripts": { | |
"lint": "ng lint --type-check", | |
... | |
}, | |
"pre-commit": [ | |
"lint" | |
], | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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