Initial commit with translated description

This commit is contained in:
2026-03-29 10:19:19 +08:00
commit 5aa1f324c6
81 changed files with 27526 additions and 0 deletions

45
eslint.config.mjs Normal file
View File

@@ -0,0 +1,45 @@
import js from "@eslint/js";
export default [
js.configs.recommended,
{
languageOptions: {
globals: {
// Node.js globals
require: "readonly",
module: "readonly",
exports: "readonly",
__dirname: "readonly",
__filename: "readonly",
process: "readonly",
console: "readonly",
Buffer: "readonly",
setTimeout: "readonly",
setInterval: "readonly",
setImmediate: "readonly",
clearTimeout: "readonly",
clearInterval: "readonly",
clearImmediate: "readonly",
URL: "readonly",
URLSearchParams: "readonly",
},
},
rules: {
"no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"no-console": "off",
},
},
// Ignore build output
{
ignores: ["lib/server.js"],
},
// Relax rules for source code (many patterns)
{
files: ["src/**/*.js"],
rules: {
"no-empty": "warn",
"no-case-declarations": "warn",
"no-misleading-character-class": "warn",
},
},
];