From 2499a79e20c0404aa8fbfdc1e4adf69d85f22664 Mon Sep 17 00:00:00 2001 From: James Milner Date: Wed, 25 Dec 2024 21:47:15 +0000 Subject: [PATCH] chore: lint error in CI if console is called --- eslint.config.js | 1 + src/modes/linestring/linestring.mode.ts | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index a44a43d..e704c3b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -26,6 +26,7 @@ export default [ rules: { "@typescript-eslint/no-empty-function": "warn", "@typescript-eslint/no-explicit-any": "warn", + "no-console": process.env.CI ? "error" : "warn", }, }, ]; diff --git a/src/modes/linestring/linestring.mode.ts b/src/modes/linestring/linestring.mode.ts index dd96fdb..68f67b6 100644 --- a/src/modes/linestring/linestring.mode.ts +++ b/src/modes/linestring/linestring.mode.ts @@ -124,7 +124,6 @@ export class TerraDrawLineStringMode extends TerraDrawBaseDrawMode