From 01ccbb3d92376fb244d69936428b9df1ad2165f1 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 3 Aug 2023 11:44:54 +0200 Subject: [PATCH] Remove dangling debuggers --- .eslintrc.js | 2 ++ packages/react/src/index.ts | 1 - theatre/core/src/sheetObjects/SheetObjectTemplate.test.ts | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index d6a599c..27f723d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -28,6 +28,8 @@ module.exports = { rules: { 'unused-imports/no-unused-imports': 'warn', 'tsdoc/syntax': 'warn', + 'no-debugger': 'error', + 'no-restricted-imports': [ 'error', { diff --git a/packages/react/src/index.ts b/packages/react/src/index.ts index 4859ca0..d55d7ee 100644 --- a/packages/react/src/index.ts +++ b/packages/react/src/index.ts @@ -346,7 +346,6 @@ export function usePrismInstance(der: Prism, debugLabel?: string): T { if (process.env.NODE_ENV !== 'production') { if (der !== ref.current.der) { - debugger console.error( 'Argument `der` in `usePrismInstance(der)` should not change between renders.', ) diff --git a/theatre/core/src/sheetObjects/SheetObjectTemplate.test.ts b/theatre/core/src/sheetObjects/SheetObjectTemplate.test.ts index e28a61d..b678cea 100644 --- a/theatre/core/src/sheetObjects/SheetObjectTemplate.test.ts +++ b/theatre/core/src/sheetObjects/SheetObjectTemplate.test.ts @@ -90,7 +90,6 @@ describe(`SheetObjectTemplate`, () => { }, }) - debugger const iter = iterateOver( obj.template.getMapOfValidSequenceTracks_forStudio(), )