import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: ["dist/**", "node_modules/**", "scripts/**"],
},
{
rules: {
// Allow unused vars prefixed with underscore
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
// Allow explicit any in tool handlers where Discourse API responses vary
"@typescript-eslint/no-explicit-any": "off",
},
}
);