Skip to content

Commit 6239506

Browse files
committed
removed unnecessary console logs
1 parent 66d252e commit 6239506

File tree

8 files changed

+60
-42
lines changed

8 files changed

+60
-42
lines changed

biome.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
"recommended": true,
2626
"suspicious": {
2727
"recommended": true,
28-
"noExplicitAny": "off"
28+
"noExplicitAny": "off",
29+
"noConsole": {
30+
"level": "error",
31+
"options": { "allow": ["assert", "error", "info", "warn"] }
32+
}
2933
},
3034
"style": {
3135
"recommended": true

package-lock.json

Lines changed: 47 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"vite": ">=5.0.0"
100100
},
101101
"devDependencies": {
102-
"@biomejs/biome": "1.8.3",
102+
"@biomejs/biome": "^1.9.4",
103103
"@remix-run/dev": "^2.9.1",
104104
"@remix-run/node": "^2.9.1",
105105
"@remix-run/react": "^2.9.1",

scripts/icons.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ const files = glob.sync("**/*.svg", {
1212
cwd: inputDir,
1313
})
1414
if (files.length === 0) {
15+
// biome-ignore lint/suspicious/noConsole: disable noConsole rule for this line
1516
console.log(`No SVG files found in ${inputDirRelative}`)
1617
process.exit(0)
1718
}
1819
// The relative paths are just for cleaner logs
20+
// biome-ignore lint/suspicious/noConsole: disable noConsole rule for this line
1921
console.log(`Generating sprite for ${inputDirRelative}`)
2022

2123
generateSvgSprite({

scripts/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ import chalk from "chalk"
33
import prompt from "prompt"
44
// Helper method used to verify the run
55
const verifyRun = async () => {
6+
// biome-ignore lint/suspicious/noConsole: disable noConsole rule for this line
67
console.log("About to execute the command")
78

89
const { sure } = await prompt.get([
910
{ name: "sure", description: "Are you sure? (y/n)", type: "string", required: true },
1011
])
1112

1213
if (sure !== "y") {
14+
// biome-ignore lint/suspicious/noConsole: disable noConsole rule for this line
1315
console.log(chalk.bold.red("Command aborted!\n"))
1416
process.exit(1)
1517
}

src/client/components/jsonRenderer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const JsonRenderer = ({ data }: JsonRendererProps) => {
3030
value
3131
.then((res) => {
3232
if (!ref.current) return
33-
console.log(res)
3433
setJson((json: any) => ({
3534
...json,
3635
[key]: res,

src/server/logger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const log = (message: string) => {
66
if (config.silent) {
77
return
88
}
9-
// eslint-disable-next-line no-console
9+
10+
// biome-ignore lint/suspicious/noConsole: disable noConsole rule for this line
1011
console.log(message)
1112
}
1213

src/vite/plugin.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export const remixDevTools: (args?: RemixViteConfig) => Plugin[] = (args) => {
175175
async configResolved(resolvedViteConfig) {
176176
if (!args?.suppressDeprecationWarning && resolvedViteConfig.appType === "custom") {
177177
// Log a warning message
178+
// biome-ignore lint/suspicious/noConsole: disable noConsole rule for this line
178179
console.log(
179180
`\n\n⚠️ ${chalk.yellowBright("remix-development-tools")} are going to be deprecated and will be renamed to ${chalk.greenBright("react-router-devtools ")} when React Router v7 is released ⚠️`,
180181
`\n⚠️ Set suppressDeprecationWarning to true in your ${chalk.greenBright("vite.config.ts")} file to silence this warning ⚠️`

0 commit comments

Comments
 (0)