Skip to content

Commit

Permalink
chore: lint error in CI if console is called (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner authored Dec 25, 2024
1 parent b575882 commit 9d6fa3e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
];
2 changes: 0 additions & 2 deletions src/modes/linestring/linestring.mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export class TerraDrawLineStringMode extends TerraDrawBaseDrawMode<LineStringSty
}

private close() {
console.log("close", this.currentCoordinate);
if (this.currentId === undefined) {
return;
}
Expand Down Expand Up @@ -164,7 +163,6 @@ export class TerraDrawLineStringMode extends TerraDrawBaseDrawMode<LineStringSty
this.setStarted();
}

console.log("onFinish");
// Ensure that any listeners are triggered with the main created geometry
this.onFinish(finishedId, { mode: this.mode, action: "draw" });
}
Expand Down

0 comments on commit 9d6fa3e

Please sign in to comment.