Skip to content

Commit

Permalink
fix(typescript): remove suppressImplicitAnyIndexErrors option
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Apr 21, 2023
1 parent 497d018 commit 27a10ed
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/config/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"moduleResolution": "node",
"isolatedModules": false,
"preserveConstEnums": true,
"suppressImplicitAnyIndexErrors": false,
"noImplicitAny": true,
"strictNullChecks": true,
"noUnusedLocals": false,
Expand Down
1 change: 0 additions & 1 deletion packages/redux-utils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowSyntheticDefaultImports": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const ICONS = {
export const ICONS: Record<string, any> = {
remove: "bxs-trash",
"question-sign":
"bx-question-mark inline-block border-1 bg-gray-400 border-solid border-gray-400 text-white text-xxs rounded-full mx-2 mt-px",
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwind-formio/src/templates/tailwind/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
switch (type) {
case "class":
// eslint-disable-next-line no-prototype-builtins
return this.cssClasses.hasOwnProperty(text.toString()) ? this.cssClasses[text.toString()] : text;
return this.cssClasses.hasOwnProperty(text.toString()) ? (this.cssClasses as any)[text.toString()] : text;
}
return text;
},
Expand Down
1 change: 0 additions & 1 deletion packages/tailwind-formio/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"noImplicitReturns": true,
"noImplicitThis": true,
"strictNullChecks": false,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"skipLibCheck": true,
Expand Down

0 comments on commit 27a10ed

Please sign in to comment.