check / check (push) Waiting to run
The shared files are the sneak/prompts copies at dd4027b, plus this repository's own entries. make lint and make test each build one Dockerfile phase without the cache, both covering the frontend; the builder stage waits on both and takes its version from git describe unless VERSION is given. The test phase keeps Go's module and build caches in memory, out of the image make test tags. golangci-lint moves to v2.14.0 with the new .golangci.yml; one test spells X-Request-ID as canonicalheader asks. prettier formats only JavaScript, CSS, HTML and Markdown, so .golangci.yml stays as fetched. script/fmt and script/fmt-check put ~/.local/bin on PATH. script/bootstrap keeps a Go only if it is exactly GO_VERSION, and re-checks the go on PATH after installing. Model: opus-5-5
28 lines
950 B
JavaScript
28 lines
950 B
JavaScript
// eslint's recommended rules over every JavaScript file in the repo.
|
|
// make lint runs it, in the frontend-lint stage of Dockerfile.
|
|
import js from "@eslint/js";
|
|
import globals from "globals";
|
|
import { defineConfig } from "eslint/config";
|
|
|
|
export default defineConfig([
|
|
js.configs.recommended,
|
|
{
|
|
// The page, and facts.js, which the viewport test runs inside it.
|
|
files: ["src/**/*.js", "test/viewport/facts.js"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
// vite.config.js defines these when it builds the page.
|
|
__COMMIT_HASH__: "readonly",
|
|
__COMMIT_FULL__: "readonly",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
// Run by node: the tests, the viewport harness and these configs.
|
|
files: ["test/**/*.js", "*.js"],
|
|
ignores: ["test/viewport/facts.js"],
|
|
languageOptions: { globals: globals.node },
|
|
},
|
|
]);
|