Skip to content

Commit

Permalink
feat: add logger
Browse files Browse the repository at this point in the history
  • Loading branch information
neolectron committed Oct 15, 2023
1 parent 8032141 commit 2e3baaa
Show file tree
Hide file tree
Showing 10 changed files with 377 additions and 191 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SETUP
DISCORD_TOKEN=
LOGLEVEL=

# DB
REDIS_URL=
Expand Down
4 changes: 4 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ settings:
import/resolver:

rules:
no-restricted-syntax:
- error
- selector: CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]
message: Use logger instead of console
import/exports-last: error
import/first: error
import/no-duplicates: error
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"keyv": "4.5.4",
"open-graph-scraper": "6.3.0",
"param-case": "3.0.4",
"pino": "8.15.1",
"zod": "3.22.4"
},
"devDependencies": {
Expand All @@ -38,6 +39,8 @@
"eslint-plugin-sonarjs": "0.21.0",
"eslint-plugin-unused-imports": "3.0.0",
"npm-run-all": "4.1.5",
"pino-dev": "4.0.2",
"pino-pretty": "10.2.0",
"prettier": "3.0.3",
"tsup": "7.2.0",
"type-fest": "4.4.0",
Expand Down
Loading

0 comments on commit 2e3baaa

Please sign in to comment.