Skip to content

chore(flow-client): rename eslint config to .mjs and quiet the Lit dev-mode banner - #24956

Closed
totally-not-ai[bot] wants to merge 3 commits into
flow-server-remove-client-enginefrom
flow-client-ts-polish
Closed

chore(flow-client): rename eslint config to .mjs and quiet the Lit dev-mode banner#24956
totally-not-ai[bot] wants to merge 3 commits into
flow-server-remove-client-enginefrom
flow-client-ts-polish

Conversation

@totally-not-ai

@totally-not-ai totally-not-ai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Small polish:

  • Rename eslint.config.jseslint.config.mjs so Node treats the ESM config as a module (drops the MODULE_TYPELESS_PACKAGE_JSON warning) without adding "type": "module" (scripts/client.js stays CommonJS).
  • web-test-runner: pre-mark Lit's dev-mode warning as issued before any module loads, keeping the banner out of test output; scope discovery to *Tests.ts.

Stacked on #24955 (base flow-server-remove-client-engine) — merge after it. Non-draft; please review before merging.

@totally-not-ai

totally-not-ai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

Review — eslint config rename + quiet Lit dev-mode banner

Both changes are sound.

  • eslint.config.js.mjs with a reworded comment — pure rename/clarification, no behavioral change.
  • web-test-runner files: 'src/test/frontend/*.ts''*Tests.ts' — verified safe: the only non-*Tests.ts files under src/test/frontend are stubVaadinPush.js and utils.js (shared helpers, and .js so never matched anyway). No actual test file is excluded, and this correctly stops the runner from trying to execute helper/fixture modules as tests.
  • Lit dev-mode banner suppression — pre-seeding (globalThis.litIssuedWarnings ??= new Set()).add('dev-mode') in an inline <head> script that runs before any module (hence before Lit) loads is the correct, documented way to mark that warning as already issued. Keeps the banner out of test output without hiding other Lit warnings.

LGTM.

@totally-not-ai
totally-not-ai Bot force-pushed the flow-server-remove-client-engine branch from 189f26e to eaf9955 Compare July 8, 2026 17:01
@totally-not-ai
totally-not-ai Bot force-pushed the flow-client-ts-polish branch from 0d97f26 to 86b564e Compare July 8, 2026 17:01
…v-mode banner

- Rename eslint.config.js to eslint.config.mjs so Node treats the ESM config as a
  module (removes the MODULE_TYPELESS_PACKAGE_JSON warning) without adding
  "type": "module" (scripts/client.js stays CommonJS).
- web-test-runner: pre-mark Lit's "dev-mode" warning as issued before any module
  loads, keeping the banner out of test output; scope test discovery to *Tests.ts.
@totally-not-ai
totally-not-ai Bot force-pushed the flow-client-ts-polish branch from 86b564e to a62c75a Compare July 8, 2026 18:51
@totally-not-ai
totally-not-ai Bot force-pushed the flow-server-remove-client-engine branch from eaf9955 to 057c9fb Compare July 8, 2026 18:51
@totally-not-ai
totally-not-ai Bot deleted the flow-client-ts-polish branch July 13, 2026 17:03
@totally-not-ai

Copy link
Copy Markdown
Contributor Author

Superseded by #24979 — head branch renamed to feature/client-ts.

@totally-not-ai totally-not-ai Bot closed this Jul 13, 2026
mcollovati pushed a commit that referenced this pull request Jul 20, 2026
…v-mode banner (#24979)

Small polish:
- Rename `eslint.config.js` → `eslint.config.mjs` so Node treats the ESM
config as a module (drops the `MODULE_TYPELESS_PACKAGE_JSON` warning)
without adding `"type": "module"` (`scripts/client.js` stays CommonJS).
- web-test-runner: pre-mark Lit's `dev-mode` warning as issued before
any module loads, keeping the banner out of test output; scope discovery
to `*Tests.ts`.

**Stacked on #24955** (base `flow-server-remove-client-engine`) — merge
after it. Non-draft; please review before merging.


---
_Re-created from #24956 after renaming the head branch
`flow-client-ts-polish` → `feature/client-ts` (the canonical branch for
the full client TS migration). GitHub orphaned the original PR on
rename._

Co-authored-by: Artur Signell <artur@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants