Skip to content

Commit 27ecf3e

Browse files
authored
fix: allow any args and referencing functions by property name (#232)
Disables two rules: `@typescript-eslint/no-unsafe-argument` - this prevents passing vars with an `any` type to functions. Unfortunately we still deal with untyped modules so this will happen. `@typescript-eslint/unbound-method` - this prevents referencing functions without invoking them. We need to disable this to do things like pass functions passed as part of an options object on to other functions.
1 parent 8690e08 commit 27ecf3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ts.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ module.exports = {
2222
'@typescript-eslint/await-thenable': 'error', // disallows awaiting a value that is not a "Thenable"
2323
'@typescript-eslint/restrict-template-expressions': 'off', // allow values with `any` type in template literals
2424
'@typescript-eslint/method-signature-style': ['error', 'method'], // enforce method signature style
25+
'@typescript-eslint/no-unsafe-argument': 'off', // allow passing argswith `any` type to functions
26+
'@typescript-eslint/unbound-method': 'off', // allow invoking functions that may be unbound (e.g. passed as part of an options object)
2527
'no-unused-vars': 'off', // disable this rule to use @typescript-eslint/no-unused-vars instead
2628
'@typescript-eslint/no-unused-vars': 'error', // disallow unused variables
2729
'no-return-await': 'off', // disable this rule to use @typescript-eslint/return-await instead

0 commit comments

Comments
 (0)