import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
{ ignores: ["build/**", "node_modules/**", ".claude/**", "dist/**"] },
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ["src/**/*.ts"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.node,
parserOptions: {
project: true,
},
},
rules: {
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-require-imports": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"no-var": "warn",
"prefer-spread": "warn",
},
},
);