Skip to content

Commit

Permalink
TypeScript: Allow implicit and explicit any
Browse files Browse the repository at this point in the history
Reasoning in inline comments.
  • Loading branch information
victorlin committed Sep 22, 2023
1 parent a61c206 commit 536feb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ globals:
rules:
# Code quality rules
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }]
"@typescript-eslint/no-explicit-any": off # Allow explicit any to make incremental TypeScript adoption easier.
no-unused-vars: off
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }]
no-use-before-define: off
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Visit https://aka.ms/tsconfig.json for a detailed list of options.

/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
"noImplicitAny": false, /* Allow implicit any to make incremental TypeScript adoption easier. */
"noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
"exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
Expand Down

0 comments on commit 536feb8

Please sign in to comment.