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:
@@ -21,6 +21,7 @@ export default defineConfig([
|
||||
parser: tsParser,
|
||||
},
|
||||
rules: {
|
||||
"no-console": "warn",
|
||||
"no-unused-vars": "off",
|
||||
"simple-import-sort/imports": "error",
|
||||
"simple-import-sort/exports": "error",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
import crypto from "node:crypto";
|
||||
|
||||
function generateApiKey(length = 32): string {
|
||||
|
||||
@@ -80,6 +80,3 @@ export const redisConfig = {
|
||||
username: redisMatch.groups.username,
|
||||
password: redisMatch.groups.password,
|
||||
};
|
||||
|
||||
console.log("env", env);
|
||||
console.log("redisConfig", redisConfig);
|
||||
|
||||
Reference in New Issue
Block a user