Roo-Code/jetbrains/host/eslint.config.mjs
2025-09-11 18:30:12 -05:00

42 lines
No EOL
1,011 B
JavaScript

import { config } from "@roo-code/config-eslint/base"
/** @type {import("eslint").Linter.Config} */
export default [
...config,
{
rules: {
// TODO: These should be fixed and the rules re-enabled.
"no-regex-spaces": "off",
"no-useless-escape": "off",
"no-empty": "off",
"prefer-const": "off",
"prefer-rest-params": "off",
"no-var": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"@typescript-eslint/no-misused-new": "off",
"@typescript-eslint/no-empty-object-type": "off",
},
},
{
files: ["__mocks__/**/*.js"],
rules: {
"no-undef": "off",
},
},
{
files: ["**/__test_cases__/**/*"],
rules: {
"no-undef": "off",
"no-const-assign": "off",
},
},
{
ignores: ["dist", "deps"],
},
]