diff --git a/dev/react-plugin-tools/react_plugin_template/src/global.d.ts b/dev/react-plugin-tools/react_plugin_template/src/global.d.ts index bbad8db170e9e..bd915e81c1a54 100644 --- a/dev/react-plugin-tools/react_plugin_template/src/global.d.ts +++ b/dev/react-plugin-tools/react_plugin_template/src/global.d.ts @@ -17,8 +17,8 @@ * under the License. */ -export interface global {} +export type global = object; declare global { - var ChakraUISystem: SystemContext | undefined + var ChakraUISystem: SystemContext | undefined; } diff --git a/dev/react-plugin-tools/react_plugin_template/src/main.tsx b/dev/react-plugin-tools/react_plugin_template/src/main.tsx index c44ade0e57ebc..a3fb8dec9f735 100644 --- a/dev/react-plugin-tools/react_plugin_template/src/main.tsx +++ b/dev/react-plugin-tools/react_plugin_template/src/main.tsx @@ -37,7 +37,7 @@ const PluginComponent: FC = (props) => { // Use the globalChakraUISystem provided by the Airflow Core UI, // so the plugin has a consistent theming with the host Airflow UI, // fallback to localSystem for local development. - const system = (globalThis.ChakraUISystem) ?? localSystem; + const system = (globalThis.ChakraUISystem) ?? localSystem; return ( diff --git a/dev/react-plugin-tools/react_plugin_template/src/theme.ts b/dev/react-plugin-tools/react_plugin_template/src/theme.ts index 9f993216ca819..c70d83711cbe5 100644 --- a/dev/react-plugin-tools/react_plugin_template/src/theme.ts +++ b/dev/react-plugin-tools/react_plugin_template/src/theme.ts @@ -16,10 +16,6 @@ * specific language governing permissions and limitations * under the License. */ - -/* eslint-disable perfectionist/sort-objects */ - -/* eslint-disable max-lines */ import { createSystem, defaultConfig } from "@chakra-ui/react"; export const localSystem = createSystem(defaultConfig);