From b2dd88ec55278396e2b950a1c92c4cca18abad51 Mon Sep 17 00:00:00 2001 From: Sergi Romeu Date: Tue, 4 Mar 2025 15:35:34 +0100 Subject: [PATCH] chore: remove react-syntax-highlighter leftovers (#213076) ## Summary Removes leftovers of react-syntax-highlighter removed in [this PR](https://github.com/elastic/kibana/pull/204902) --- 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 aa9c7ba3e0ca..c2cfbacfa838 100644 --- a/renovate.json +++ b/renovate.json @@ -3670,25 +3670,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 1d4bb71039a0..220376aef29f 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 56dca1af61a1..35d25d065126 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';