- 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
25 lines
557 B
JSON
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/"]
|
|
}
|