Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

lint: lint commented console statements (#7086)

Myles Scolnick0659a1979dfc
diff --git a/biome.jsonc b/biome.jsonc
index d79d753b7d..bd9af23180 100644
--- a/biome.jsonc
+++ b/biome.jsonc
@@ -4,7 +4,8 @@
"frontend/lint/addEventListenerObject.grit",
"frontend/lint/removeEventListenerObject.grit",
"frontend/lint/preferObjectParams.grit",
- "frontend/lint/atomWithStorageArgs.grit"
+ "frontend/lint/atomWithStorageArgs.grit",
+ "frontend/lint/noCommentedConsole.grit"
],
"files": {
"includes": ["frontend/**/*", "packages/**/*", "!*.json", "!*.jsonc"]
diff --git a/frontend/lint/noCommentedConsole.grit b/frontend/lint/noCommentedConsole.grit
new file mode 100644
index 0000000000..2328faff2c
--- /dev/null
+++ b/frontend/lint/noCommentedConsole.grit
@@ -0,0 +1,10 @@
+language js
+
+// Match commented out console statements
+`// console.$method` where {
+ register_diagnostic(
+ span=.,
+ message="Remove commented out console statement instead of leaving it in the code",
+ severity="error"
+ )
+}