check / check (push) Waiting to run
main's tree, with next merged on 26 October, as one commit onto prod, on sneak's order. Model: opus-5-5 Co-authored-by: clawbot <clawbot@noreply.example.org>
28 lines
954 B
JavaScript
28 lines
954 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: ["web/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 },
|
|
},
|
|
]);
|