All skills
secondsky avatar

/sapui5-linter

@620a19a
by Eddiesecondsky/sap-skills456 stars
120

Use this skill when working with the UI5 Linter (@ui5/linter) for static code analysis of SAPUI5/OpenUI5 applications and libraries. Covers setup, configuring linting rules, running the linter to detect deprecated APIs, global variable usage, CSP violations, and manifest issues. Supports autofix for deprecated API usage, global references, event handlers, and manifest properties. Includes CI/CD integration, pre-commit hooks, and UI5 2.x migration preparation.

Use this Skill: https://skilld.dev/gh/secondsky/sap-skills/sapui5-linter

This session only. Nothing lands on disk.

README.md

≈1.8k tokens on demand. Your agent reads this file only when SKILL.md points to it.

SAPUI5 Linter Skill

Comprehensive Claude Code skill for the UI5 Linter (@ui5/linter) - static code analysis for SAPUI5 and OpenUI5 projects.

Capability Index

Capability Status
Commands 2: /ui5-linter-check, /ui5-linter-fix-plan
Agents 0
Hooks No
MCP No
LSP No
Source Freshness last_verified: 2026-06-14; README and audit docs reference @ui5/linter 1.22.0.
Verification npm run validate; project-specific lint runs require target app evidence.

Auto-Trigger Keywords

This skill automatically triggers when working with:

Tool & Package Names

  • ui5lint
  • @ui5/linter
  • UI5 Linter
  • SAPUI5 Linter
  • OpenUI5 Linter
  • ui5lint.config.js
  • ui5lint.config.mjs
  • ui5lint.config.cjs

Linting Activities

  • lint UI5 code
  • lint SAPUI5 application
  • lint OpenUI5 library
  • static code analysis UI5
  • UI5 code quality
  • UI5 linting rules
  • UI5 deprecated API detection
  • UI5 global variable detection
  • UI5 CSP violations
  • UI5 manifest validation
  • UI5 autofix

Specific Rules

  • no-deprecated-api
  • no-globals
  • no-implicit-globals
  • async-component-flags
  • csp-unsafe-inline-script
  • no-ambiguous-event-handler
  • no-deprecated-component
  • no-deprecated-library
  • no-deprecated-theme
  • no-pseudo-modules
  • parsing-error
  • autofix-error
  • prefer-test-starter
  • ui5-class-declaration
  • unsupported-api-usage
  • no-outdated-manifest-version
  • no-removed-manifest-property
  • no-legacy-ui5-version-in-manifest

Migration & Compatibility

  • UI5 2.x migration
  • UI5 2.0 compatibility
  • legacy-free UI5
  • UI5 deprecation
  • modernize UI5 code
  • upgrade UI5 version
  • Manifest Version 2
  • UI5 minVersion 1.136

Configuration & Setup

  • configure UI5 linter
  • setup UI5 linting
  • UI5 lint ignore patterns
  • UI5 lint configuration
  • ui5lint ignore
  • ui5lint files
  • UI5 linter CI/CD
  • UI5 linter GitHub Actions
  • UI5 linter pre-commit hook

Common Errors & Issues

  • sap.ui.getCore() deprecated
  • global variable UI5
  • jQuery.sap deprecated
  • Core.getConfiguration deprecated
  • Core.loadLibrary deprecated
  • synchronizationMode manifest
  • tap event deprecated
  • press event handler
  • ODataModel properties deprecated
  • SmartTable exportType deprecated
  • Bootstrap script attributes deprecated

Autofix Scenarios

  • autofix deprecated APIs
  • autofix global variables
  • autofix manifest properties
  • autofix event handlers
  • replace sap.ui.getCore
  • replace jQuery.sap
  • update manifest v2
  • fix UI5 deprecations
  • UI5LINT_FIX_DRY_RUN

File Types

  • lint JavaScript UI5
  • lint TypeScript UI5
  • lint XML views
  • lint JSON manifest
  • lint HTML UI5
  • lint YAML ui5.yaml
  • lint .js files UI5
  • lint .ts files UI5
  • lint .xml files UI5

Integration Keywords

  • npm run lint UI5
  • UI5 lint script
  • package.json UI5 linter
  • Husky UI5 lint
  • lint-staged UI5
  • GitHub Actions UI5 lint
  • GitLab CI UI5 lint
  • Jenkins UI5 lint
  • pre-commit UI5 lint

Performance & Optimization

  • UI5 linter performance
  • optimize UI5 linting
  • slow UI5 lint
  • UI5 lint large codebase
  • ui5lint --perf
  • UI5 linter benchmarks

Output & Reporting

  • ui5lint --format json
  • ui5lint --format markdown
  • ui5lint --format html
  • UI5 lint report
  • UI5 linting results
  • ui5lint --details
  • ui5lint --quiet
  • ui5lint --verbose

Troubleshooting

  • UI5 linter not working
  • ui5lint parsing error
  • ui5lint autofix error
  • UI5 linter config not found
  • UI5 lint patterns not working
  • UI5 linter slow performance

What This Skill Provides

Comprehensive Coverage

  • ✅ 19 linting rules with detailed explanations and examples
  • ✅ Autofix capabilities and limitations comprehensively documented
  • ✅ CLI options - All command-line flags with use cases
  • ✅ Configuration patterns - ESM/CommonJS templates and examples
  • ✅ Performance optimization - Benchmarks and tuning strategies
  • ✅ Integration guides - CI/CD, pre-commit hooks, npm scripts

Progressive Disclosure

  • Metadata (~200 words): Always loaded for skill discovery
  • Main SKILL.md (~4,500 words): Core concepts, quick start, common scenarios
  • Reference files (~15,000 words): Deep dives on demand
    • rules-complete.md: All 19 rules in detail
    • autofix-complete.md: Complete autofix reference
    • cli-options.md: All CLI flags and options
    • configuration.md: Advanced configuration
    • performance.md: Benchmarks and optimization

Ready-to-Use Templates

  • ui5lint.config.mjs - ES Module configuration
  • ui5lint.config.cjs - CommonJS configuration
  • package.json.template - npm integration
  • github-actions-lint.yml - GitHub Actions workflow
  • husky-pre-commit.template - Pre-commit hook

Token Efficiency

  • Without skill: ~17k tokens (trial and error, web searches)
  • With skill: ~6k tokens (direct guidance, zero errors)
  • Savings: ~64% token reduction

Usage Examples

Ask Claude Code:

"Set up UI5 linter in my project"
"How do I fix deprecated APIs in UI5?"
"Configure UI5 linter to ignore test files"
"What is the no-globals rule?"
"Help me migrate to UI5 2.x"
"Fix manifest version errors"
"Why is ui5lint slow on my large codebase?"
"Set up UI5 linter in GitHub Actions"

Source Information

Official Repository: https://github.com/UI5/linter Current Version: 1.22.0 (verified via npm on 2026-06-14) Node.js: v20.11+ or v22+ License: Apache-2.0

Documentation Links

Skill Metadata

Version: 2.3.0 Last Updated: 2026-06-14 UI5 Linter Version: 1.22.0 Maintained By: Eduard Jiglau Email: hello@sap-ai-skills.com Website: https://sap-ai-skills.com License: GPL-3.0

Update Schedule

Quarterly Review (Every 3 months):

  • Check latest UI5 Linter version
  • Update rule documentation
  • Verify autofix capabilities
  • Update templates and examples
  • Test with latest UI5 versions

Next Review: 2026-02-21

Contributing

For issues or improvements related to this skill:

For UI5 Linter issues:


Quick Start: See SKILL.md for complete documentation and usage instructions.

Source: SKILL.md on GitHub

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a comprehensive documentation and template resource for integrating and using the SAPUI5/OpenUI5 Linter (@ui5/linter). It contains no executable scripts or malicious content and adheres to safe development practices.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 620a19a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "maintainer": "Eduard Jiglau",
  "maintainer_email": "hello@sap-ai-skills.com",
  "website": "https://sap-ai-skills.com",
  "version": "2.4.1",
  "last_verified": "2026-06-14",
  "ui5_linter_version": "1.22.0",
  "source": "https://github.com/UI5/linter",
  "documentation": "https://github.com/UI5/linter/blob/main/README.md",
  "keywords": [
    "SAPUI5",
    "OpenUI5",
    "UI5 Linter",
    "@ui5/linter",
    "static analysis",
    "deprecated APIs",
    "global variables",
    "CSP",
    "manifest.json",
    "ui5.yaml",
    "ESLint",
    "pre-commit hooks",
    "GitHub Actions",
    "CI/CD",
    "Node.js",
    "TypeScript",
    "XML",
    "JSON",
    "HTML",
    "YAML",
    "OData v2/v4",
    "async",
    "event handlers",
    "jQuery",
    "autofix",
    "performance optimization",
    "19 linting rules",
    "no-deprecated-api",
    "no-globals",
    "no-async-component-flags",
    "manifest-v2",
    "UI5 2.x migration"
  ]
}

README badge

README badge for secondsky/sap-skills/sapui5-linter