Loading...
Loading...
Compare original and translation side by side
@sap-ux/eslint-plugin-fiori-tools@sap-ux/eslint-plugin-fiori-tools| User says / situation | Task | Reference |
|---|---|---|
"Set up ESLint", "Add ESLint", no | Set up | references/setup.md |
"Migrate ESLint", | Migrate | references/migrate.md |
"Run ESLint", "Check my code", "Fix lint errors", | Lint | references/lint.md |
| "Show all application issues", "show UX consistency issues", "issues for app X", "same issues as Page Map/App Info" | App issues only | references/lint.md — follow the App-scope mode section |
undefined| 用户表述 / 场景 | 任务 | 参考文档 |
|---|---|---|
"设置ESLint"、"添加ESLint",项目中无 | 设置 | references/setup.md |
"迁移ESLint",项目中存在 | 迁移 | references/migrate.md |
"运行ESLint"、"检查我的代码"、"修复检查错误",项目中存在 | 代码检查 | references/lint.md |
| "显示所有应用问题"、"显示UX一致性问题"、"应用X的问题"、"与页面映射/应用信息相同的问题" | 仅查看应用问题 | references/lint.md — 遵循应用范围模式章节 |
undefined
- **No config found** → follow [references/setup.md](references/setup.md)
- **Legacy config found** (`.eslintrc*`) → follow [references/migrate.md](references/migrate.md)
- **Flat config found** (`eslint.config.mjs`) → follow [references/lint.md](references/lint.md)
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.
- **未找到配置文件** → 遵循[references/setup.md](references/setup.md)
- **找到旧版配置文件**(`.eslintrc*`)→ 遵循[references/migrate.md](references/migrate.md)
- **找到扁平配置文件**(`eslint.config.mjs`)→ 遵循[references/lint.md](references/lint.md)
若意图仍不明确,请询问用户是要设置ESLint、迁移现有配置还是运行代码检查。