diff --git a/backend/eslint.config.mjs b/backend/eslint.config.mjs new file mode 100644 index 0000000..38a5613 --- /dev/null +++ b/backend/eslint.config.mjs @@ -0,0 +1,36 @@ +import js from "@eslint/js"; +import tseslint from "typescript-eslint"; + +export default [ + { + ignores: ["dist/**", "node_modules/**", "coverage/**"], + }, + js.configs.recommended, + ...tseslint.configs.recommended, + { + files: ["**/*.ts"], + languageOptions: { + parserOptions: { + project: false, + }, + }, + rules: { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", + { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }, + ], + "no-empty": "off", + }, + }, + { + files: ["**/*.js", "**/*.mjs"], + languageOptions: { + globals: { + Buffer: "readonly", + console: "readonly", + process: "readonly", + }, + }, + }, +];