.eslintrc.json•1.31 kB
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true,
"es2022": true
},
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "all",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"no-console": "off",
"semi": ["error", "always"],
"quotes": ["error", "single", { "avoidEscape": true }],
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-useless-escape": "warn",
"no-case-declarations": "off",
"prefer-const": "warn",
"no-unused-vars": "off"
},
"ignorePatterns": [
"dist/",
"node_modules/",
"*.js",
"*.d.ts",
"*.cjs",
"vitest.config.ts",
"test-*.js"
]
}