- .github/agents/ProcessTasks.agent.md: Copilot agent definition - eslint.config.ts: minor lint rule adjustment - Docs/Tasks.md: update completed and in-progress task status
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
import js from "@eslint/js";
|
|
import tseslint from "typescript-eslint";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import prettierConfig from "eslint-config-prettier";
|
|
|
|
export default tseslint.config(
|
|
{ ignores: ["dist", "eslint.config.ts"] },
|
|
{
|
|
extends: [js.configs.recommended, ...tseslint.configs.strictTypeChecked],
|
|
files: ["**/*.{ts,tsx}"],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: ["./tsconfig.json", "./tsconfig.node.json"],
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
plugins: {
|
|
"react-hooks": reactHooks,
|
|
},
|
|
rules: {
|
|
...reactHooks.configs.recommended.rules,
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
"@typescript-eslint/explicit-function-return-type": "warn",
|
|
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
|
},
|
|
},
|
|
prettierConfig,
|
|
{
|
|
files: ["src/**/*.test.{ts,tsx}", "src/setupTests.ts"],
|
|
rules: {
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
},
|
|
},
|
|
);
|