Skip to content

[IMP] runbot: adopt ESLint v9 flat config and Web Baseline support policy - #1493

Open
pparidans wants to merge 2 commits into
19.0from
19.0-eslint-update-app
Open

[IMP] runbot: adopt ESLint v9 flat config and Web Baseline support policy#1493
pparidans wants to merge 2 commits into
19.0from
19.0-eslint-update-app

Conversation

@pparidans

Copy link
Copy Markdown
Contributor

Upgrade ESLint to v9 flat config (eslint.config.js) matching Node 18.19.1 on Ubuntu
24.04 LTS.

Define "baseline widely available" policy in browserslist and integrate
eslint-plugin-compat to lint frontend JS against this browser support standard.

@pparidans pparidans self-assigned this Aug 14, 2026
Upgrade ESLint to v9 and transition from the legacy `.eslintrc.json` /
`.eslintignore` setup to the modern `eslint.config.js` flat config
format.

The Node.js engine constraint is set to `>=18.18.0` to match the default
Node.js version provided by Ubuntu 24.04 LTS (Node 18.19.1) and the
minimum requirement for the last ESLint 9.x version (10.x requires Node
20).

Note: the actual configuration applied has not changed in this commit.

Summary of changes:
- Upgrade `eslint` to 9.x and add `@eslint/js` and `globals`
  dependencies.
- Add Node 18.18+ requirements
- Consolidate ignore patterns, globals, and rules into
  `eslint.config.js`.
- Remove an obsolete inline ESLint directive in
  `polyfill_command_api.js`.
Adopt the Web Platform Baseline ("widely available") target as our
standard browser compatibility policy for runbot JS code.

The "Baseline Widely available" standard represents features supported
across all major browser engines (Chrome, Edge, Firefox, Safari) for at
least 30 months, ensuring safe, polyfill-free compatibility.

Summary of changes:
- Define `"browserslist": ["baseline widely available"]` in
  `package.json` for reference and tooling.
- Integrate `eslint-plugin-compat` in ESLint's config to
  automatically catch unsupported JS features during linting.

References:
- https://web.dev/baseline
- https://developer.mozilla.org/en-US/docs/Web/Baseline
@pparidans
pparidans force-pushed the 19.0-eslint-update-app branch from e69a4f1 to de15150 Compare August 14, 2026 09:41
@C3POdoo
C3POdoo requested a review from a team August 14, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant