Introduce some functional programming techniques

This commit is contained in:
Dolan
2018-11-02 02:51:57 +00:00
parent 9cfd835171
commit 7980f14efb
108 changed files with 749 additions and 659 deletions

View File

@ -1,41 +1,29 @@
{
"extends": "tslint:latest",
"extends": ["tslint:latest", "tslint-immutable"],
"rules": {
"curly": true,
"one-variable-per-declaration": [
true
],
"one-variable-per-declaration": [true],
"no-any": true,
"no-consecutive-blank-lines": [
true
],
"no-consecutive-blank-lines": [true],
"no-require-imports": true,
"member-access": [
true,
"check-accessor"
],
"indent": [
true,
"spaces"
],
"member-access": [true, "check-accessor"],
"indent": [true, "spaces"],
"object-literal-sort-keys": false,
"object-literal-shorthand": false,
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration"
],
"max-line-length": [
false
],
"max-classes-per-file": [
false
],
"typedef": [true, "call-signature", "parameter", "property-declaration"],
"max-line-length": [false],
"max-classes-per-file": [false],
"no-implicit-dependencies": false,
"no-submodule-imports": false,
"no-null-keyword": true,
"return-undefined": true,
"prefer-readonly": true
"prefer-readonly": true,
// Functional Programming Rules
"no-parameter-reassignment": true,
"readonly-keyword": true,
"no-delete": true,
"no-method-signature": true,
"no-mixed-interface": true
// "no-expression-statement": [true, { "ignore-prefix": ["console.", "describe", "it", "super", "expect"] }]
}
}