From c7f9c2623e524e97dede7f8e369d6ca8f33e676b Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 31 Oct 2023 15:52:58 -0400 Subject: [PATCH] chore: re-enable consistent-indexed-object-style and 'fix' violation --- .eslintrc.js | 1 - packages/utils/src/json-schema.ts | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index ac2e363f4e13..d852a75216f9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -53,7 +53,6 @@ module.exports = { 'deprecation/deprecation': 'error', // TODO(#7338): Investigate enabling these soon ✨ - '@typescript-eslint/consistent-indexed-object-style': 'off', '@typescript-eslint/no-unnecessary-condition': 'off', '@typescript-eslint/no-dynamic-delete': 'off', '@typescript-eslint/prefer-nullish-coalescing': 'off', diff --git a/packages/utils/src/json-schema.ts b/packages/utils/src/json-schema.ts index a3b2e5fdeceb..73ab2f3ddc89 100644 --- a/packages/utils/src/json-schema.ts +++ b/packages/utils/src/json-schema.ts @@ -33,6 +33,8 @@ export type JSONSchema4TypeExtended = | JSONSchema4Object; // Workaround for infinite type recursion +// Also, https://github.com/typescript-eslint/typescript-eslint/issues/7863 +// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style export interface JSONSchema4Object { [key: string]: JSONSchema4TypeExtended; }