Files
blog/eslint.config.mjs
T
tiennm99 a0de52c877 refactor(projects): build the projects list on the octokit SDK
Replace hand-rolled REST paging, GraphQL cursor loops and header plumbing with
octokit, which also brings request retry and rate-limit backoff. Introduces the
repo's first package.json, lockfile and ESLint flat config; the Hugo site build
itself still needs no Node step.

Output verified against the previous implementation: identical counts and rows
apart from live star drift on four upstream repos.
2026-09-18 12:28:11 +07:00

20 lines
497 B
JavaScript

import js from "@eslint/js";
export default [
{ ignores: ["public/**", "resources/**", "themes/**"] },
js.configs.recommended,
{
files: ["**/*.mjs", "**/*.js"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: { console: "readonly", process: "readonly", fetch: "readonly" },
},
rules: {
"no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
eqeqeq: ["error", "always"],
"prefer-const": "error",
},
},
];