Skip to content

feat(tslint-config): change config value for "no-this-assignment" #20

Merged
merged 1 commit into from
Dec 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/configs/tslint-microsoft-contrib-override.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default {
"no-increment-decrement": false,
"no-relative-imports": false,
"no-suspicious-comment": false,
"prefer-type-cast": false
"prefer-type-cast": false,
"no-var-self": false // Deprecated. Use 'no-this-assignment' instead
}
};
8 changes: 8 additions & 0 deletions src/configs/tslint-override.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ export default {
"no-duplicate-switch-case": true,
"no-for-in-array": true,
"no-implicit-dependencies": [true, "dev"],
"no-this-assignment": [
true,
{
"allowed-names": [
"^self$"
]
}
],
"prefer-object-spread": true,

// Maintainability
Expand Down