Skip to content

Commit

Permalink
fix: allow self-aliases (#105)
Browse files Browse the repository at this point in the history
Allow aliasing self for use within (async) generator functions.

Fixes: #104
  • Loading branch information
achingbrain authored Jun 17, 2022
1 parent d79572c commit 15cbb1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
'etc/prefer-interface': 'error', // https://ncjamieson.com/prefer-interfaces/
'@typescript-eslint/prefer-function-type': 'off', // conflicts with 'etc/prefer-interface'
'@typescript-eslint/explicit-function-return-type': 'off', // allow compiler to derive return type
'@typescript-eslint/no-this-alias': 'off', // allow 'const self = this'
'jsdoc/require-param': 'off', // do not require jsdoc for params
'jsdoc/require-param-type': 'off' // allow compiler to derive param type
}
Expand Down

0 comments on commit 15cbb1d

Please sign in to comment.