# Fix Js Globals

> | Fix JavaScript no-globals errors that UI5 linter reports but cannot auto-fix. Use this skill when linter outputs: - no-globals rule with message "Access of global variable '...' (...)" in JS files Cases handled (linter CANNOT auto-fix): - Assignments to global namespaces: sap.myNamespace = {...} - Global namespace assignment/read inside sap.ui.define - Delete expressions: delete sap.something - sap.ui.core.Core direct access (class vs singleton) - jQuery/$ globals: add sap/ui/thirdparty/jquery — do NOT replace jQuery API calls - jQuery.sap. utilities: replace with dedicated modules - Conditional/probing access: if (sap.ui.something) - Custom namespace definitions that aren't UI5 modules - sap.ui.controller() factory → Controller.extend (NOT Fiori Elements extensions) - jQuery.sap.declare/require: legacy modules without sap.ui.define Trigger when: "fix no-globals", "global variable error", "sap.ui.getCore", "jQuery.sap" Converts global namespace access to proper sap.ui.define module imports.

## Facts
- Page: https://tashan.sh/capability/skill-ui5-fix-js-globals
- tashan id: skill:UI5/fix-js-globals
- Source: https://github.com/UI5/plugins-coding-agents
- Type: skill
- Category: devtools
- tashan score: not scored (catalogued only — too little public evidence)
- Adoption: 9.0
- Upkeep: 96.0
- Freshness: 92.0
- Evidence coverage: 84% of the inputs this score can use
- Health: active
- Instruction depth: not yet graded
- License: Apache-2.0
- Official: no

## Install

```sh
cp -r fix-js-globals ~/.claude/skills/
```

## Security audit
Not scanned. We audit npm-published capabilities; this one has no npm package we can resolve, or has not reached the queue. This is not a clean bill of health.

---
Measured 2026-08-14 by tashan (https://tashan.sh) from public evidence. Scorer s5.
