Skip to content

Commit a9c4275

Browse files
Clean react plugin tools (#60419)
1 parent 4ecd6c4 commit a9c4275

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

dev/react-plugin-tools/react_plugin_template/src/global.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
export interface global {}
20+
export type global = object;
2121

2222
declare global {
23-
var ChakraUISystem: SystemContext | undefined
23+
var ChakraUISystem: SystemContext | undefined;
2424
}

dev/react-plugin-tools/react_plugin_template/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const PluginComponent: FC<PluginComponentProps> = (props) => {
3737
// Use the globalChakraUISystem provided by the Airflow Core UI,
3838
// so the plugin has a consistent theming with the host Airflow UI,
3939
// fallback to localSystem for local development.
40-
const system = (globalThis.ChakraUISystem) ?? localSystem;
40+
const system = (globalThis.ChakraUISystem) ?? localSystem;
4141

4242
return (
4343
<ChakraProvider value={system}>

dev/react-plugin-tools/react_plugin_template/src/theme.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
20-
/* eslint-disable perfectionist/sort-objects */
21-
22-
/* eslint-disable max-lines */
2319
import { createSystem, defaultConfig } from "@chakra-ui/react";
2420

2521
export const localSystem = createSystem(defaultConfig);

0 commit comments

Comments
 (0)