Fix js globals
ui5/plugins-coding-agents
Fix JavaScript `no-globals` errors that UI5 linter reports but cannot auto-fix.
“코딩과 소프트웨어 개발” 분야의 스킬이에요. Claude Code, Codex, OpenCode 외 32개 에이전트용 명령이 준비돼 있어요.
전체 설명
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.
- Skill
- 코딩과 소프트웨어 개발
- 에이전트 35개
- 48 스타
- Apache-2.0
이 항목의 출처는 GitSkills 오픈 데이터셋(CC-BY-4.0)이에요. ANG은 이 스킬을 실행하거나 감사하지 않았어요. 설치하기 전에 소스를 확인하세요.