diff --git a/src/configs/tslint-microsoft-contrib-override.ts b/src/configs/tslint-microsoft-contrib-override.ts index 4067e17..431e3b1 100644 --- a/src/configs/tslint-microsoft-contrib-override.ts +++ b/src/configs/tslint-microsoft-contrib-override.ts @@ -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 } }; diff --git a/src/configs/tslint-override.ts b/src/configs/tslint-override.ts index 2aa15ab..9934f99 100644 --- a/src/configs/tslint-override.ts +++ b/src/configs/tslint-override.ts @@ -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