mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-11 12:09:02 +00:00
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.
20 lines
497 B
JavaScript
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",
|
|
},
|
|
},
|
|
];
|