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 從公開儲存庫中收錄這些內容。

檢舉或申請下架