Sap Fiori Eslint Plugin

作者 SAP69e2c50833f1无许可证收录于 2026年10月8日更新于 2026年10月8日

Configure, migrate, or run ESLint with @sap-ux/eslint-plugin-fiori-tools in SAP Fiori projects (standalone or CAP). Use when ESLint is missing and the user wants to add it or add code quality checks; when an existing .eslintrc or eslint@8 config needs upgrading to ESLint 9 flat config; when the user wants to run linting, fix lint errors, or ESLint is broken or not working; or when the user wants to see the application issues or UX consistency issues for a specific app — e.g. "show application issue(s) for my project <project_name>", "show application issues for app X", "UX consistency issues", "issues consistent with Page Map", "same issues as Application Information".

AI 生成的概览

在 SAP Fiori 项目中配置、迁移或运行带 SAP Fiori 工具插件的 ESLint,并报告应用问题。

功能
指导智能体在 SAP Fiori 项目中使用 @sap-ux/eslint-plugin-fiori-tools,涵盖三项任务:从零配置 ESLint、将旧版 .eslintrc 或 ESLint 8 配置迁移到 ESLint 9 扁平配置,以及运行代码检查或修复 lint 错误。它还包含应用范围模式,用于报告特定应用的应用问题和 UX 一致性问题。该技能仅提供说明,并引导至配置、迁移和代码检查的参考文档。
适用场景
适用于以下情况:SAP Fiori 项目缺少 ESLint,用户希望添加它或添加代码质量检查;现有 .eslintrc 或 ESLint 8 配置需要升级到 ESLint 9 扁平配置;或者用户希望运行代码检查、修复 lint 错误,或查看特定应用的应用问题或 UX 一致性问题。
运行要求
需要 Node.js 以及 npm、pnpm 或 yarn。面向 SAP Fiori freestyle 和 Fiori elements 项目,可独立存在或位于 CAP 项目内。不附带脚本,仅包含说明和参考文档。

SAP Fiori ESLint Plugin

Work with @sap-ux/eslint-plugin-fiori-tools on SAP Fiori projects: set up ESLint from scratch, migrate from a legacy configuration, or run and fix lint issues.

Determine which task to perform

Identify the user's intent from their request:

User says / situationTaskReference
"Set up ESLint", "Add ESLint", no eslint.config.mjs existsSet upreferences/setup.md [blocked]
"Migrate ESLint", .eslintrc / eslint@8 present, upgrade ESLintMigratereferences/migrate.md [blocked]
"Run ESLint", "Check my code", "Fix lint errors", eslint.config.mjs existsLintreferences/lint.md [blocked]
"Show all application issues", "show UX consistency issues", "issues for app X", "same issues as Page Map/App Info"App issues onlyreferences/lint.md [blocked] — follow the App-scope mode section

If the intent is unclear, check the project state:

bash
# Check for existing ESLint config (any format)ls eslint.config.mjs eslint.config.js .eslintrc .eslintrc.js .eslintrc.cjs .eslintrc.json .eslintrc.yml .eslintrc.yaml 2>/dev/null
  • No config found → follow references/setup.md [blocked]
  • Legacy config found (.eslintrc*) → follow references/migrate.md [blocked]
  • Flat config found (eslint.config.mjs) → follow references/lint.md [blocked]

If the intent is still unclear, ask the user to clarify whether they want to set up ESLint, migrate an existing config, or run linting.

来源与署名

来源:SAP/open-ux-tools位于packages/fiori-mcp-server/skills/sap-fiori-eslint-plugin提交69e2c50

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架