.eslintrc.json•1.4 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"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"no-console": [
"warn",
{
"allow": [
"warn",
"error"
]
}
],
"prefer-const": "warn",
"no-var": "error",
"no-useless-escape": "warn",
"no-control-regex": "off",
"no-case-declarations": "off",
"no-misleading-character-class": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off"
},
"env": {
"node": true,
"es2022": true
},
"ignorePatterns": [
"dist/",
"node_modules/",
"*.js",
"examples/",
"test/",
"tests/",
"test-*.ts",
"run-*.ts",
"*-test.ts",
"debug-*.ts",
"*-demo.ts",
"*-verify.ts",
"verify-*.ts",
"switch-*.mjs",
"pagination-*.cjs",
"diagnostics-*.js"
]
}