fix-library-init
Installation
SKILL.md
Fix Library.init() Modernization
This skill fixes Library.init() / Lib.init() calls that the UI5 linter detects as missing apiVersion: 2, and modernizes enum definitions to use DataType.registerEnum — which is required when using apiVersion: 2.
Linter Rules Handled
| Rule ID | Message Pattern | This Skill's Action |
|---|---|---|
no-deprecated-api |
Deprecated call to Library.init(). Use the {apiVersion: 2} parameter instead | Add apiVersion: 2 to the init call |
no-deprecated-api |
Deprecated call to Lib.init(). Use the {apiVersion: 2} parameter instead | Add apiVersion: 2 to the init call |
no-deprecated-api |
Deprecated call to init(). Use the {apiVersion: 2} parameter instead | Add apiVersion: 2 (destructured init) |