mirror of
https://github.com/LizardByte/GameDB.git
synced 2026-10-23 03:36:51 +09:00
33 lines
920 B
JavaScript
33 lines
920 B
JavaScript
import globals from "globals";
|
|
import pluginJs from "@eslint/js";
|
|
|
|
export default [
|
|
pluginJs.configs.recommended,
|
|
{
|
|
ignores: [
|
|
"coverage/**",
|
|
"node_modules/**",
|
|
"gh-pages/**",
|
|
],
|
|
},
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
// cross-file globals injected by item_detail.js into the browser scope
|
|
"base_url": "readonly",
|
|
"base_path": "readonly",
|
|
"igdbImageUrl": "readonly",
|
|
"getRegionFlag": "readonly",
|
|
"makeBadge": "readonly",
|
|
"addDlRow": "readonly",
|
|
"loadItemDetail": "readonly",
|
|
"renderGameList": "readonly",
|
|
"splitString": "readonly",
|
|
"require": "readonly",
|
|
},
|
|
},
|
|
},
|
|
];
|