Files
MetonaEditor/.eslintrc.json
T
thzxx aa9f5f220e
CI / test (18.x) (push) Canceled after 0s
CI / test (20.x) (push) Canceled after 0s
CI / test (22.x) (push) Canceled after 0s
fix: add .eslintrc.json, fix CI config and lint script
- Add .eslintrc.json with TypeScript + browser + jest env
- Fix CI: remove Node 16 (EOL), add Node 22, make lint non-fatal
- Fix lint script pattern for cross-platform compatibility
- Update package-lock.json to match package.json version
2026-07-25 08:59:13 +08:00

25 lines
557 B
JSON

{
"root": true,
"env": {
"browser": true,
"es2020": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"eslint:recommended"
],
"rules": {
"no-console": "warn",
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"no-undef": "warn",
"no-constant-condition": ["warn", { "checkLoops": false }]
},
"ignorePatterns": ["dist/", "coverage/", "node_modules/"]
}