Files
loldle/web/eslint.config.mjs
tiennm99 eae345ecbb chore: remove Next.js and repoint CI at the SvelteKit layout
sync-data.yml now writes static/champions.json. This is the edit that had to
land with the deletion of public/: the workflow reports success regardless of
which path it writes, so a miss would have left the weekly sync green while
the live game 404'd on data load.

deploy.yml publishes build/ and passes BASE_PATH. Adds ci.yml, which runs
test, lint, and build on pull_request and pushes to main -- the repo had no
PR-triggered workflow before, so 'green before merge' was previously
unenforceable.

Deletes app/, components/, lib/, public/, next.config.mjs and
postcss.config.mjs, drops the Next and React dependencies, and swaps ESLint
onto eslint-plugin-svelte. sharp and unrs-resolver left pnpm's allowBuilds
because both arrived with Next and pnpm why now reports no dependents.
2026-07-25 11:18:58 +07:00

28 lines
698 B
JavaScript

import js from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import svelte from "eslint-plugin-svelte";
import globals from "globals";
export default defineConfig([
globalIgnores([".svelte-kit/**", "build/**"]),
js.configs.recommended,
...svelte.configs.recommended,
// App code runs in the browser.
{
languageOptions: {
globals: { ...globals.browser },
},
},
// Config files and tests run in Node. Tests keep the browser globals too,
// since the localStorage stub is installed onto globalThis.
{
files: ["*.config.js", "*.config.mjs", "test/**/*.js"],
languageOptions: {
globals: { ...globals.node },
},
},
]);