8000 ci: lint browser bridge with ESLint by Tigon32 · Pull Request #4 · Tigon32/miniquad · GitHub
[go: up one dir, main page]

Skip to content

ci: lint browser bridge with ESLint - #4

Merged
Tigon32 merged 4 commits into
masterfrom
ci/eslint-browser-glue
Nov 10, 2026
Merged

Tigon32 merged 4 commits into
masterfrom
ci/eslint-browser-glue

Conversation

@Tigon32
@Tigon32 Tigon32 commented Nov 10, 2026 •
Copy link
Copy Markdown
Owner

Introduce ESLint flat configuration focused on correctness, without changing runtime JavaScript or adding bundled dependencies. Add ESLint as a development-only package, run it after Node syntax checking in the existing required rust-wasm CI job.

Initial rules: no-undef, no-dupe-args, no-duplicate-case, no-unreachable, no-unsafe-finally, no-invalid-regexp, no-fallthrough, and no-constant-condition. Legacy-style warnings are intentionally not enabled.

Validation: Rust library tests, WASM library check, WASM release example, Node syntax check and ESLint passed on commit a391c18c99d9a48168ba19c7505ea0ef06833597. Browser runtime behavior remains untested. Follow-up: commit a reproducible npm lockfile.

Upstream cross-check and resolved defects

Searched open/closed issues and PRs on not-fl3/miniquad for glDeleteQueries, GL_SHADER_BINARY_FORMATS, no-undef, fallthrough, queries, keyboard, and related terms. No direct upstream PR/issue fixing the two undefined references was identified. These references are present on upstream master.

Fixed existing js/gl.js bugs: undefined err(...) changed to console.error(...), and undefined textures in glDeleteQueries(n, ids) changed to ids. Combined duplicate switch cases in _webglGet and kept keyboard case groups with no behavior change; no ESLint suppressions introduced.

Related but not equivalent upstream work: #698 (browser Cmd/key release; already integrated via fork PR #1), #587 (WASM loading refactor). Do not reimport them as fixes for this lint PR.

@Tigon32
Tigon32 marked this pull request as ready for review November 10, 2026 00:35
@Tigon32
Tigon32 merged commit 076cbc3 into master Nov 10, 2026
23 checks passed
@Tigon32
Tigon32 deleted the ci/eslint-browser-glue branch November 10, 2026 00:35
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

0