fix: install @typescript-eslint/parser and configure lint rules
CI / test (20.x) (push) Canceled after 0s
CI / test (22.x) (push) Canceled after 0s
CI / test (24.x) (push) Canceled after 0s
CI / test (18.x) (push) Canceled after 1h23m25s

This commit is contained in:
2026-07-25 10:16:02 +08:00
parent dc7d592387
commit 12c39e025f
3 changed files with 361 additions and 7 deletions
+9 -2
View File
@@ -6,17 +6,24 @@
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended"
],
"rules": {
"no-console": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-undef": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-undef": "off",
"no-empty": "off",
"no-useless-escape": "off",
"no-control-regex": "off",
"no-regex-spaces": "off",
"no-constant-condition": ["warn", { "checkLoops": false }]
},
"ignorePatterns": ["dist/", "coverage/", "node_modules/"]