From ce26d28b4107225dbd496e8f497accff2f2b6c4d Mon Sep 17 00:00:00 2001 From: Sergi Romeu Date: Tue, 4 Mar 2025 12:43:18 +0100 Subject: [PATCH] chore: remove react-syntax-highlighter leftovers --- renovate.json | 19 ------------------- .../kbn-ambient-storybook-types/index.d.ts | 8 -------- typings/index.d.ts | 8 -------- 3 files changed, 35 deletions(-) diff --git a/renovate.json b/renovate.json index 08aa226e9a82d..fe27fbe22348d 100644 --- a/renovate.json +++ b/renovate.json @@ -3668,25 +3668,6 @@ "minimumReleaseAge": "7 days", "enabled": true }, - { - "groupName": "react-syntax-highlighter", - "matchDepNames": [ - "react-syntax-highlighter", - "@types/react-syntax-highlighter" - ], - "reviewers": [ - "team:obs-ux-infra_services-team" - ], - "matchBaseBranches": [ - "main" - ], - "labels": [ - "release_note:skip", - "backport:all-open" - ], - "minimumReleaseAge": "7 days", - "enabled": true - }, { "groupName": "native-hdr-histogram", "matchDepNames": [ diff --git a/src/platform/packages/shared/kbn-ambient-storybook-types/index.d.ts b/src/platform/packages/shared/kbn-ambient-storybook-types/index.d.ts index 1d4bb71039a0f..220376aef29f5 100644 --- a/src/platform/packages/shared/kbn-ambient-storybook-types/index.d.ts +++ b/src/platform/packages/shared/kbn-ambient-storybook-types/index.d.ts @@ -10,14 +10,6 @@ // Storybook react doesn't declare this in its typings, but it's there. declare module '@storybook/react/standalone'; -// Storybook references this module. It's @ts-ignored in the codebase but when -// built into its dist it strips that out. Add it here to avoid a type checking -// error. -// -// See https://github.com/storybookjs/storybook/issues/11684 -declare module 'react-syntax-highlighter/dist/cjs/create-element'; -declare module 'react-syntax-highlighter/dist/cjs/prism-light'; - // Storybook uses this module and its types are defined in the source but not in the type output declare module 'file-system-cache' { interface Options { diff --git a/typings/index.d.ts b/typings/index.d.ts index 56dca1af61a10..35d25d065126c 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -9,13 +9,5 @@ declare module 'axios/lib/adapters/xhr'; -// Storybook references this module. It's @ts-ignored in the codebase but when -// built into its dist it strips that out. Add it here to avoid a type checking -// error. -// -// See https://github.com/storybookjs/storybook/issues/11684 -declare module 'react-syntax-highlighter/dist/cjs/create-element'; -declare module 'react-syntax-highlighter/dist/cjs/prism-light'; - declare module 'find-cypress-specs'; declare module '@cypress/grep/src/plugin';