Files
gregfromstl d3139b2f6a [SDK] Fix: Remove and Prevent console.log (#5527)
CNCT-2483

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on removing `console.log` statements from various files to clean up the code and improve maintainability. It also modifies the linter configuration to adjust rules related to console usage.

### Detailed summary
- Removed `console.log` statements from multiple test and implementation files.
- Adjusted linter configuration to allow specific console warnings only.
- Updated `biome.json` to include new linter rules for console usage.
- Cleaned up unused imports related to `DEBUG` constants.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-11-26 22:34:43 +00:00

51 lines
1.0 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"extends": ["../../biome.json"],
"linter": {
"rules": {
"nursery": {
"noProcessEnv": "warn"
},
"suspicious": {
"noConsole": {
"level": "error",
"options": {
"allow": ["error", "warn"]
}
}
}
}
},
"overrides": [
{
"include": ["src/**/*.test.ts", "src/**/*.test.tsx", "src/stories/**"],
"linter": {
"rules": {
"nursery": {
"noProcessEnv": "off"
}
}
}
},
{
"include": ["src/cli/bin.ts", "src/cli/commands/**"],
"linter": {
"rules": {
"suspicious": {
"noConsole": "off"
}
}
}
}
],
"files": {
"ignore": [
"src/crypto/aes/lib/md5.ts",
"src/utils/promise/p-limit.ts",
"src/utils/bytecode/cbor-decode.ts",
"src/wallets/in-app/native/helpers/wallet/sss.ts",
"src/**/__generated__/**"
]
}
}