[IMP] runbot: adopt ESLint v9 flat config and Web Baseline support policy - #1493
Open
pparidans wants to merge 2 commits into
Open
[IMP] runbot: adopt ESLint v9 flat config and Web Baseline support policy#1493pparidans wants to merge 2 commits into
pparidans wants to merge 2 commits into
Conversation
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
force-pushed
the
19.0-eslint-update-app
branch
from
August 14, 2026 09:41
e69a4f1 to
de15150
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade ESLint to v9 flat config (
eslint.config.js) matching Node 18.19.1 on Ubuntu24.04 LTS.
Define
"baseline widely available"policy inbrowserslistand integrateeslint-plugin-compatto lint frontend JS against this browser support standard.