Skip to content

chore(cli): move eslint config into cli package#36878

Merged
wylswz merged 2 commits into
mainfrom
codex/move-cli-eslint-config
Jun 1, 2026
Merged

chore(cli): move eslint config into cli package#36878
wylswz merged 2 commits into
mainfrom
codex/move-cli-eslint-config

Conversation

@lyzno1
Copy link
Copy Markdown
Member

@lyzno1 lyzno1 commented Jun 1, 2026

Summary

  • move CLI-specific ESLint config into cli/eslint.config.mjs
  • remove CLI-specific config from the root ESLint config

@lyzno1 lyzno1 requested review from a team, crazywoola and laipz8200 as code owners June 1, 2026 02:36
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. javascript labels Jun 1, 2026
Comment thread cli/eslint.config.mjs Outdated
@lyzno1 lyzno1 requested a review from wylswz June 1, 2026 03:52
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 1, 2026
@wylswz wylswz added this pull request to the merge queue Jun 1, 2026
Merged via the queue into main with commit a8a2ca7 Jun 1, 2026
32 checks passed
@wylswz wylswz deleted the codex/move-cli-eslint-config branch June 1, 2026 03:59
lin-snow added a commit to lin-snow/dify that referenced this pull request Jun 1, 2026
The branch's scaffold commit added a `!cli/**` un-ignore plus
`cli/context/**`, `cli/docs/**`, `cli/oclif.manifest.json` re-ignores to
the root eslint config. These are unused/obsolete:

- oclif was removed (langgenius#36328), so `oclif.manifest.json` is never generated.
- The CLI has its own `cli/eslint.config.mjs` (langgenius#36878) which already
  ignores `context/**`, `docs/**`, `dist/**`, `coverage/**`; cli is linted
  by that config, not the root one.

Removing the whole block makes the root ignores identical to upstream/main
again. CLI lint coverage is unchanged (verified via `cd cli && pnpm lint`).
lin-snow added a commit to lin-snow/dify that referenced this pull request Jun 1, 2026
The branch's scaffold commit added a `!cli/**` un-ignore plus
`cli/context/**`, `cli/docs/**`, `cli/oclif.manifest.json` re-ignores to
the root eslint config. These are unused/obsolete:

- oclif was removed (langgenius#36328), so `oclif.manifest.json` is never generated.
- The CLI has its own `cli/eslint.config.mjs` (langgenius#36878) which already
  ignores `context/**`, `docs/**`, `dist/**`, `coverage/**`; cli is linted
  by that config, not the root one.

Removing the whole block makes the root ignores identical to upstream/main
again. CLI lint coverage is unchanged (verified via `cd cli && pnpm lint`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants