chore: configure eslint and update gitignore

This commit is contained in:
TYt50
2026-02-01 15:07:02 +08:00
parent 1cbd819ff6
commit 8908d56518
13 changed files with 1938 additions and 643 deletions

22
eslint.config.mjs Normal file
View File

@@ -0,0 +1,22 @@
import js from "@eslint/js";
import globals from "globals";
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
...globals.es2021
}
},
rules: {
"no-unused-vars": "warn",
"no-console": "off",
"no-undef": "warn"
}
}
];