mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Merge pull request #32082 from BerriAI/litellm_/eloquent-swanson-d634ca
chore(ui): add no-console lint ratchet and strip console from prod builds
This commit is contained in:
commit
36cbc3a24c
4 changed files with 7 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"@typescript-eslint/no-explicit-any": { "max": 2040, "target": 1500 },
|
||||
"no-console": { "max": 484, "target": 0 },
|
||||
"complexity": { "max": 140, "target": 80 },
|
||||
"max-depth": { "max": 70, "target": 30 }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"@typescript-eslint/no-explicit-any": 1991,
|
||||
"complexity": 128,
|
||||
"max-depth": 59
|
||||
"max-depth": 59,
|
||||
"no-console": 484
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ const eslintConfig = [
|
|||
rules: {
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"no-console": ["warn", { allow: ["warn", "error"] }],
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-expressions": "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ const __dirname = path.dirname(__filename);
|
|||
|
||||
const nextConfig = {
|
||||
output: "export",
|
||||
compiler: {
|
||||
removeConsole: process.env.NODE_ENV === "production" ? { exclude: ["error", "warn"] } : false,
|
||||
},
|
||||
// Required with output: "export" — default image optimizer runs only in server mode.
|
||||
// See https://nextjs.org/docs/messages/export-image-api
|
||||
images: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue