Skip to content
SiteEmail

Scripts can call APIs that Gameface does not provide/support. The plugin flags obvious unsupported usage in .js, .jsx, .ts, and .tsx files.

  • Errors for globals Gameface does not support (for example some browser-only APIs used as bare identifiers)
  • Warnings for partial APIs—Something.member where member is known to be missing on that type in Gameface

These are static checks. They help during development but do not replace testing in the actual Gameface runtime.

Examples of patterns that may not be reported

Section titled “Examples of patterns that may not be reported”
  • obj.chrome or other property access through a variable
  • globalThis['Chrome'] with a computed name
  • Code paths only reachable at runtime

Some projects polyfill or inject globals at runtime. You can lower severity or disable the rule for that file pattern:

{
files: ["src/legacy/**/*.js"],
rules: {
"gameface/js-no-unsupported-globals": "off",
},
},

See Rules reference for rule ids.