chore(config): update ESLint environment to support browser globals
Added `browser: true` environment and declared `window` and `navigator` as readonly globals to support epic-games.js which uses browser APIs.
This commit is contained in:
parent
ddb37b5c82
commit
b85c326211
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ module.exports = {
|
|||
node: true,
|
||||
es2021: true,
|
||||
es6: true,
|
||||
browser: true, // Added for epic-games.js which uses window and navigator
|
||||
},
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
|
|
@ -41,5 +42,7 @@ module.exports = {
|
|||
delay: 'readonly',
|
||||
dataDir: 'readonly',
|
||||
resolve: 'readonly',
|
||||
window: 'readonly', // Added for epic-games.js
|
||||
navigator: 'readonly', // Added for epic-games.js
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue