mirror of
https://github.com/usebruno/bruno.git
synced 2025-05-05 15:32:58 +00:00
fix: lint errors for atob/btoa redefinition (#4509)
* fix: lint errors for atob/btoa redefinition
This commit is contained in:
parent
e8affcfde9
commit
54a03fd0d3
@ -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;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user