forked from ReactiveX/rxjs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tap): slight size reduction (ReactiveX#5704)
* refactor(tap): Slightly reduce the size of tap. - Reduce the size of the tap implementation - Adds more comprehensive documentation (this means more "lines of code" in the PR, but not in the bundle output) - Updates lint rules so null check expressions can be used standalone - Moves chai-related lint rule to the actual spec linting. * refactor: Second pass to further reduce the size and add comments * refactor: even smaller, less nonsense, more comments
- Loading branch information
Showing
4 changed files
with
185 additions
and
102 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"extends": ["tslint:latest", "tslint-no-unused-expression-chai", "tslint-config-prettier"], | ||
"rulesDirectory": ["../node_modules/tslint-etc/dist/rules", "../node_modules/tslint-no-toplevel-property-access/rules"], | ||
// This is really just a list of what is wrong in our codebase, | ||
// We should remove all of these over time. | ||
"rules": { | ||
"ordered-imports": [false], | ||
"interface-name": [false], | ||
"variable-name": [false], // Ben cries | ||
"member-access": [false], | ||
"ban-types": [false], | ||
"array-type": [false], | ||
"no-angle-bracket-type-assertion": [false], | ||
"no-shadowed-variable": [false], | ||
"no-empty-interface": [false], | ||
"interface-over-type-literal": [false], | ||
"member-ordering": [false], | ||
"only-arrow-functions": [false], | ||
"callable-types": [false], | ||
"prefer-const": [false], | ||
"object-literal-sort-keys": [false], | ||
"no-this-assignment": [false], | ||
"one-variable-per-declaration": [false], | ||
"no-conditional-assignment": [false], | ||
"no-unnecessary-initializer": [false], | ||
"max-classes-per-file": [true, 10], | ||
"unified-signatures": [false], | ||
"jsdoc-format": [false], | ||
"no-console": [false], | ||
"prefer-for-of": [false], | ||
"comment-format": [false], | ||
"object-literal-shorthand": [false], | ||
"prefer-conditional-expression": [false], | ||
"triple-equals": [false], // OH MY GOD!!!!! AHHH!!!! | ||
"no-object-literal-type-assertion": [false], | ||
"ban-comma-operator": [false], | ||
"no-submodule-imports": [false], | ||
"no-implicit-dependencies": [true, "dev", ["rxjs", "chai"]], | ||
"radix": [false], | ||
"no-string-literal": [false], | ||
"no-string-throw": [false], | ||
"arrow-return-shorthand": [false] | ||
} | ||
} |
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
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