diff --git a/packages/bruno-app/src/utils/codemirror/javascript-lint.js b/packages/bruno-app/src/utils/codemirror/javascript-lint.js index 371fd2a30..88829322e 100644 --- a/packages/bruno-app/src/utils/codemirror/javascript-lint.js +++ b/packages/bruno-app/src/utils/codemirror/javascript-lint.js @@ -76,6 +76,18 @@ if (!SERVER_RENDERED) { return true; } + /* + * Filter out errors due to atob/btoa redefinition + * + * - W079: Redefinition of '{a}' + * This JSHint warning triggers when a variable name conflicts with a built-in global. + * We filter this for atob/btoa to allow explicit requires in Node.js environments + * where these browser functions might not be available. + */ + if (error.code === 'W079' && (error.a === 'atob' || error.a === 'btoa')) { + return false; + } + return true; });