.eslintrc.json•729 B
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
"node": true,
"es2022": true,
"jest": true
},
"globals": {
"D1Database": "readonly",
"VectorizeIndex": "readonly"
},
"rules": {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"no-unused-vars": "off",
"no-undef": "warn",
"no-useless-escape": "warn",
"prefer-const": "error",
"no-var": "error"
},
"ignorePatterns": [
"dist/",
"node_modules/",
"*.js",
"*.cjs"
]
}