Add logger in backend (#69)

* Replace `console.log` `console.error` with Winston logger
* Add ESLint warning of `console`
This commit is contained in:
Lin, Hung-Shin authored and GitHub committed 2023-11-21 22:16:56 +08:00
commit 9f9a31719e
22 files changed
+241 -41

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = {
sourceType: 'module',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-console': 'warn',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'import/extensions': 'off',
camelcase: ['error', { properties: 'never', ignoreDestructuring: true }],