Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit ec97dd8

Browse files
committed
lint: no console
1 parent e1c36d3 commit ec97dd8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

apps/client/.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"sourceType": "module"
1717
},
1818
"plugins": ["@typescript-eslint", "react"],
19-
"rules": {},
19+
"rules": {
20+
"no-console": "warn"
21+
},
2022
"settings": {
2123
"react": {
2224
"version": "detect"

apps/client/src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ log(
147147
"font-size: 1rem"
148148
);
149149

150+
// eslint-disable-next-line no-console
150151
console.log(
151152
"SELF-XSS WARNING - PLEASE DON'T DO PASTE ANYTHING INTO HERE FROM PLACES YOU DON'T TRUST!!!"
152153
);

apps/client/src/routes/Main/Home/DaySelect.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ export default function DaySelect({
7272
size="sm"
7373
variant="outline"
7474
onClick={() => {
75-
console.log(
76-
DateTime.fromISO(dtt?.date),
77-
DateTime.fromJSDate(selected)
78-
);
7975
if (dtt) {
8076
setSelected(DateTime.fromISO(dtt.date).toJSDate());
8177
}

apps/client/src/utils/log.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const log = (...args: unknown[]) => {
22
if (localStorage.getItem("debug") === "true") {
3+
// eslint-disable-next-line no-console
34
return console.log(...args);
45
}
56
};

0 commit comments

Comments
 (0)