Merged in feat/sw-3596-console (pull request #3100)
feat(SW-3596): added lint rule for no console.log. Use logger instead. * feat(SW-3596): added lint rule for no console.log. Use logger instead. Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -35,7 +35,7 @@ export async function POST(_req: NextRequest) {
|
||||
)
|
||||
|
||||
if (!newTokens || error) {
|
||||
console.error("Error refreshing token", error)
|
||||
logger.error("Error refreshing token", error)
|
||||
|
||||
if (isResponseError(error)) {
|
||||
if (error.status === 400 && error.cause === "invalid_grant") {
|
||||
|
||||
@@ -28,6 +28,7 @@ export default defineConfig([
|
||||
},
|
||||
|
||||
rules: {
|
||||
"no-console": "warn",
|
||||
"no-unused-vars": "off",
|
||||
"react/function-component-definition": "error",
|
||||
"import/no-relative-packages": "error",
|
||||
|
||||
Reference in New Issue
Block a user