We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23142f1 commit 664eeadCopy full SHA for 664eead
lib/rules/typescript.js
@@ -98,5 +98,15 @@ module.exports = {
98
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/triple-slash-reference.md
99
*/
100
'@typescript-eslint/triple-slash-reference': 'off',
101
+
102
+ /**
103
+ * @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-this-alias.md
104
+ */
105
+ '@typescript-eslint/no-this-alias': [
106
+ 'error',
107
+ {
108
+ allowedNames: [ 'self' ], // Allow `const self = this`; `[]` by default
109
+ },
110
+ ],
111
},
112
};
0 commit comments