Skip to content

Enable no-unsafe-argument lint rule - #1792

Open
hasimk-dna wants to merge 4 commits into
rokucommunity:masterfrom
hasimk-dna:feature/457-enable-no-unsafe-argument-rule
Open

Enable no-unsafe-argument lint rule#1792
hasimk-dna wants to merge 4 commits into
rokucommunity:masterfrom
hasimk-dna:feature/457-enable-no-unsafe-argument-rule

Conversation

@hasimk-dna

Copy link
Copy Markdown
Contributor

fixes #457

> brighterscript@0.73.1 lint
> eslint "src/**" && npm run check-eol


> brighterscript@0.73.1 check-eol
> check-eol --eol platform './*' 'src/**/*' 'scripts/**/*' 'TestRokuApp/**/*' 'docs/**/*' 'benchmarks/**/*' '.vscode/*' '.github/**/*' '!**/node_modules/**/*'

Scanning files
platform darwin
SUCCESS: Found no files with incorrect line endings (out of 301 total).
183 no-unsafe-argument violations before fix
> brighterscript@0.73.0 lint
> eslint "src/**" && npm run check-eol


/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/BusyStatusTracker.ts
  134:33  error  Unsafe argument of type `any` assigned to a parameter of type `"active-runs-change"`  @typescript-eslint/no-unsafe-argument
  136:25  error  Unsafe argument of type `any` assigned to a parameter of type `T | PromiseLike<T>`    @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/DiagnosticMessages.ts
  858:26  error  Unsafe argument of type `any` assigned to a parameter of type `number`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/LanguageServer.ts
  340:76  error  Unsafe argument of type `any` assigned to a parameter of type `LogLevelNumeric |LogLevel`  @typescript-eslint/no-unsafe-argument
  583:40  error  Unsafe argument of type `any` assigned to a parameter of type `string`           @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/Logger.ts
   12:32  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
   14:37  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
   68:42  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument
   79:44  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument
   88:43  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument
   97:42  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument
  105:43  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument
  114:44  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument
  123:44  error  Unsafe spread of an `any` array type         @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/Program.ts
  641:32  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  781:52  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  784:52  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/ProgramBuilder.ts
   99:37  error  Unsafe argument of type `any` assigned to a parameter of type `BsDiagnostic`  @typescript-eslint/no-unsafe-argument
  564:43  error  Unsafe argument of type `any` assigned to a parameter of type `string`        @typescript-eslint/no-unsafe-argument
  564:79  error  Unsafe argument of type `any` assigned to a parameter of type `string`        @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/Scope.ts
  651:64  error  Unsafe spread of an `any` array type  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/ScopeNamespaceLookup.ts
  110:30  error  Unsafe argument of type `any` assigned to a parameter of type `NamespaceContainer`  @typescript-eslint/no-unsafe-argument
  114:26  error  Unsafe argument of type `any` assigned to a parameter of type `NamespaceContainer`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/Throttler.ts
  80:33  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
  82:38  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/astUtils/reflection.ts
  338:44  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument
  344:32  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  347:32  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  350:32  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  353:32  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/astUtils/visitors.ts
  18:20  error  Unsafe argument of type `any` assigned to a parameter of type `WalkVisitor`  @typescript-eslint/no-unsafe-argument
  51:42  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`      @typescript-eslint/no-unsafe-argument
  57:56  error  Unsafe argument of type `any` assigned to a parameter of type `T[keyof T]`   @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/bscPlugin/BscPlugin.ts
  66:55  error  Unsafe argument of type `any` assigned to a parameter of type `OnGetSemanticTokensEvent<BrsFile>`  @typescript-eslint/no-unsafe-argument
  72:41  error  Unsafe argument of type `any` assigned to a parameter of type `OnFileValidateEvent<BrsFile>`       @typescript-eslint/no-unsafe-argument
  74:41  error  Unsafe argument of type `any` assigned to a parameter of type `OnFileValidateEvent<XmlFile>`       @typescript-eslint/no-unsafe-argument
  92:53  error  Unsafe argument of type `any` assigned to a parameter of type `BeforeFileTranspileEvent<BrsFile>`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/bscPlugin/SignatureHelpUtil.ts
  62:29  error  Unsafe argument of type `any` assigned to a parameter of type `string`@typescript-eslint/no-unsafe-argument
  62:42  error  Unsafe argument of type `any` assigned to a parameter of type `SignatureInfoObj`@typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/bscPlugin/codeActions/CodeActionsProcessor.ts
   35:52  error  Unsafe argument of type `any` assigned to a parameter of type `DiagnosticMessageType<"cannotFindName", { genericParserMessage: (message: string) => { message: string; code: number; severity: 1; }; cannotFindName: (name: string, fullName?: string) => { message: string; code: number; data: { ...; }; severity: 1; }; ... 152 more ...; functionNameTooLong: (name: string, length: num...`  @typescript-eslint/no-unsafe-argument
   37:49  error  Unsafe argument of type `any` assigned to a parameter of type `DiagnosticMessageType<"classCouldNotBeFound", { genericParserMessage: (message: string) => { message: string; code:number; severity: 1; }; cannotFindName: (name: string, fullName?: string) => { message: string; code: number; data: { ...; }; severity: 1; }; ... 152 more ...; functionNameTooLong: (name: string,lengt...`  @typescript-eslint/no-unsafe-argument
   39:52  error  Unsafe argument of type `any` assigned to a parameter of type `DiagnosticMessageType<"xmlComponentMissingExtendsAttribute", { genericParserMessage: (message: string) => { message: string; code: number; severity: 1; }; cannotFindName: (name: string, fullName?: string) => { ...; }; ... 152 more ...; functionNameTooLong: (name: string, length: number, maxLength: number) => {...; ...`  @typescript-eslint/no-unsafe-argument
  262:67  error  Unsafe argument of type `any` assigned to a parameter of type `IToken`           @typescript-eslint/no-unsafe-argument
  294:60  error  Unsafe argument of type `any` assigned to a parameter of type `number`           @typescript-eslint/no-unsafe-argument
  703:27  error  Unsafe argument of type `any` assigned to a parameter of type `string`           @typescript-eslint/no-unsafe-argument
  703:40  error  Unsafe argument of type `any` assigned to a parameter of type `string`           @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/bscPlugin/inlayHints/InlayHintProcessor.ts
  151:34  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  198:38  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/bscPlugin/validation/ScopeValidator.ts
  471:81  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  475:52  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  478:72  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  495:81  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  504:79  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/cli.ts
   84:31  error  Unsafe argument of type `any` assigned to a parameter of type `BsConfig`         @typescript-eslint/no-unsafe-argument
  107:21  error  Unsafe argument of type `any` assigned to a parameter of type `string`         @typescript-eslint/no-unsafe-argument
  155:62  error  Unsafe argument of type `any` assigned to a parameter of type `string | ArrayBufferView`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/common/Sequencer.ts
   92:33  error  Unsafe spread of an `any` array type  @typescript-eslint/no-unsafe-argument
  117:44  error  Unsafe spread of an `any` array type  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/diagnosticUtils.ts
  206:29  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument
  434:68  error  Unsafe argument of type `any` assigned to a parameter of type `string`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/files/BrsFile.ts
   140:35  error  Unsafe argument of type `any` assigned to a parameter of type `BsDiagnostic`  @typescript-eslint/no-unsafe-argument
   428:43  error  Unsafe argument of type `any` assigned to a parameter of type `BsDiagnostic`  @typescript-eslint/no-unsafe-argument
   649:55  error  Unsafe argument of type `any` assigned to a parameter of type `string`        @typescript-eslint/no-unsafe-argument
   746:45  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`       @typescript-eslint/no-unsafe-argument
  1306:38  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`       @typescript-eslint/no-unsafe-argument
  1310:34  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`       @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/files/XmlFile.ts
  233:30  error  Unsafe argument of type `any[]` assigned to a parameter of type `(IToken & { tokenType: TokenType; })[]`  @typescript-eslint/no-unsafe-argument
  672:73  error  Unsafe spread of an `any` array type                         @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/ActionQueue.ts
  138:36  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
  140:52  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/DocumentManager.ts
  113:33  error  Unsafe argument of type `any` assigned to a parameter of type `"flush"`         @typescript-eslint/no-unsafe-argument
  122:36  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
  124:52  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/Project.ts
  670:36  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
  672:52  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/ProjectManager.ts
  1022:23  error  Unsafe argument of type `any` assigned to a parameter of type `"validate-begin"`          @typescript-eslint/no-unsafe-argument
  1022:41  error  Unsafe argument of type `any` assigned to a parameter of type `{ project: LspProject; }`  @typescript-eslint/no-unsafe-argument
  1067:36  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[])=> void`  @typescript-eslint/no-unsafe-argument
  1069:52  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[])=> void`  @typescript-eslint/no-unsafe-argument
  1154:12  error  Unsafe argument of type `any` assigned to a parameter of type `string`          @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/ReaderWriterManager.ts
  57:35  error  Unsafe argument of type `any` assigned to a parameter of type `void`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/worker/MessageHandler.ts
   77:30   error  Unsafe argument of type `any` assigned to a parameter of type `R`      @typescript-eslint/no-unsafe-argument
  160:102  error  Unsafe argument of type `any` assigned to a parameter of type `Error`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/lsp/worker/WorkerThreadProject.ts
  225:67  error  Unsafe argument of type `any` assigned to a parameter of type `MethodNames<LspProject>`   @typescript-eslint/no-unsafe-argument
  301:19  error  Unsafe argument of type `any` assigned to a parameter of type `"critical-failure"`        @typescript-eslint/no-unsafe-argument
  301:39  error  Unsafe argument of type `any` assigned to a parameter of type `{ message: string; }`      @typescript-eslint/no-unsafe-argument
  308:36  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument
  310:52  error  Unsafe argument of type `any` assigned to a parameter of type `(...args: any[]) => void`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/parser/Expression.ts
    57:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
    59:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   138:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   141:17  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                     @typescript-eslint/no-unsafe-argument
   488:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   605:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   646:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   712:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   713:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   717:17  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                     @typescript-eslint/no-unsafe-argument
   762:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
   922:17  error  Unsafe argument of type `any[]` assigned to a parameter of type `(Expression | CommentStatement)[]`  @typescript-eslint/no-unsafe-argument
   959:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1052:36  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                     @typescript-eslint/no-unsafe-argument
  1163:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1461:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1465:17  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                     @typescript-eslint/no-unsafe-argument
  1552:21  error  Unsafe spread of an `any` array type                     @typescript-eslint/no-unsafe-argument
  1613:17  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                     @typescript-eslint/no-unsafe-argument
  1703:17  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                     @typescript-eslint/no-unsafe-argument
  1864:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1866:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1868:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1965:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  1967:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument
  2054:17  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                     @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/parser/Parser.ts
   412:51  error  Unsafe argument of type `any` assigned to a parameter of type `{ name: Identifier; equal?: Token; }`                        @typescript-eslint/no-unsafe-argument
   587:42  error  Unsafe argument of type `any` assigned to a parameter of type `{ enum: Token; name: Identifier; endEnum: Token; }`          @typescript-eslint/no-unsafe-argument
  1061:13  error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                            @typescript-eslint/no-unsafe-argument
  1062:13  error  Unsafe argument of type `any` assigned to a parameter of type `Token`                                            @typescript-eslint/no-unsafe-argument
  1797:58  error  Unsafe argument of type `any` assigned to a parameter of type `Token & { charCode: number; }`                               @typescript-eslint/no-unsafe-argument
  1803:55  error  Unsafe argument of type `any[]` assigned to a parameter of type `(LiteralExpression | EscapedCharCodeLiteralExpression)[]`  @typescript-eslint/no-unsafe-argument
  1827:47  error  Unsafe argument of type `any[]` assigned to a parameter of type `(LiteralExpression | EscapedCharCodeLiteralExpression)[]`  @typescript-eslint/no-unsafe-argument
  1841:93  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                                            @typescript-eslint/no-unsafe-argument
  1843:78  error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                                            @typescript-eslint/no-unsafe-argument
  2194:26  error  Unsafe argument of type `any[]` assigned to a parameter of type `Statement[]`                                            @typescript-eslint/no-unsafe-argument
  2912:97  error  Unsafe argument of type `any` assigned to a parameter of type `{ range?: Range;}`                                          @typescript-eslint/no-unsafe-argument
  2918:89  error  Unsafe argument of type `any` assigned to a parameter of type `{ range?: Range;}`                                          @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/parser/SGParser.ts
  110:43  error  Unsafe argument of type `any` assigned to a parameter of type `DocumentCstNode`@typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/parser/Statement.ts
   125:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `Statement[]`                                             @typescript-eslint/no-unsafe-argument
   178:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
   241:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `Statement[]`                                             @typescript-eslint/no-unsafe-argument
   278:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
   335:13   error  Unsafe argument of type `any[]` assigned to a parameter of type `("parent" | "annotations")[]`                              @typescript-eslint/no-unsafe-argument
   601:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
   603:17   error  Unsafe argument of type `any` assigned to a parameter of type `Block | IfStatement`                                         @typescript-eslint/no-unsafe-argument
   641:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
   695:45   error  Unsafe argument of type `any` assigned to a parameter of type `{ range?: Range; text: string; }`                            @typescript-eslint/no-unsafe-argument
   709:101  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                                             @typescript-eslint/no-unsafe-argument
   719:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `(Expression |PrintSeparatorTab | PrintSeparatorSpace)[]`  @typescript-eslint/no-unsafe-argument
   720:38   error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                                             @typescript-eslint/no-unsafe-argument
   727:13   error  Unsafe argument of type `any[]` assigned to a parameter of type `("parent" | "annotations")[]`                              @typescript-eslint/no-unsafe-argument
   783:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                                             @typescript-eslint/no-unsafe-argument
   907:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1066:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1070:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1154:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1226:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1284:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1286:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1366:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1367:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1368:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  1371:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `Expression[]`                                             @typescript-eslint/no-unsafe-argument
  1756:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `Statement[]`                                             @typescript-eslint/no-unsafe-argument
  2387:17   error  Unsafe argument of type `any` assigned to a parameter of type `string | TranspileResult | SourceNode`                       @typescript-eslint/no-unsafe-argument
  2410:38   error  Unsafe argument of type `any` assigned to a parameter of type `{ range?: Range; text: string; }`                            @typescript-eslint/no-unsafe-argument
  2442:17   error  Unsafe argument of type `any[]` assigned to a parameter of type `Statement[]`                                             @typescript-eslint/no-unsafe-argument
  2566:58   error  Unsafe argument of type `any` assigned to a parameter of type `DottedGetExpression`                                         @typescript-eslint/no-unsafe-argument
  2749:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  2913:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  3155:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument
  3232:17   error  Unsafe argument of type `any` assigned to a parameter of type `Expression`                                             @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/preprocessor/Preprocessor.ts
  122:39  error  Unsafe argument of type `any` assigned to a parameter of type `boolean`  @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/util.ts
   577:38  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                                @typescript-eslint/no-unsafe-argument
   579:46  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                                @typescript-eslint/no-unsafe-argument
   715:36  error  Unsafe argument of type `any` assigned to a parameter of type `{}`                                @typescript-eslint/no-unsafe-argument
   735:53  error  Unsafe argument of type `any` assigned to a parameter of type `ArrayLike<unknown> | { [s: string]: unknown; }`  @typescript-eslint/no-unsafe-argument
  1404:47  error  Unsafe argument of type `any` assigned to a parameter of type `Error`                                @typescript-eslint/no-unsafe-argument
  1424:30  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                                @typescript-eslint/no-unsafe-argument
  1427:38  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`                                @typescript-eslint/no-unsafe-argument
  1767:33  error  Unsafe argument of type `any` assigned to a parameter of type `string`                                @typescript-eslint/no-unsafe-argument
  1795:54  error  Unsafe argument of type `any` assigned to a parameter of type `string`                                @typescript-eslint/no-unsafe-argument
  1886:53  error  Unsafe argument of type `any` assigned to a parameter of type `string | SourceNode | (string | SourceNode)[]`   @typescript-eslint/no-unsafe-argument
  1965:21  error  Unsafe argument of type `any` assigned to a parameter of type `string`                                @typescript-eslint/no-unsafe-argument
  1965:37  error  Unsafe argument of type `any` assigned to a parameter of type `string`                                @typescript-eslint/no-unsafe-argument

/Users/hasimkaraman/Workspace/RokuCommunity/brighterscript/src/validators/ClassValidator.ts
  221:67  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  229:37  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument
  239:50  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  241:58  error  Unsafe argument of type `any` assigned to a parameter of type `AstNode`  @typescript-eslint/no-unsafe-argument
  250:41  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument
  272:37  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument
  288:37  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument
  290:37  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument
  291:37  error  Unsafe argument of type `any` assigned to a parameter of type `string`   @typescript-eslint/no-unsafe-argument

✖ 183 problems (183 errors, 0 warnings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable no-unsafe-argument lint rule

1 participant