-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
27 lines (26 loc) · 803 Bytes
/
eslint.config.js
File metadata and controls
27 lines (26 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import reactHooks from "eslint-plugin-react-hooks";
export default tseslint.config(
js.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
"react-hooks": reactHooks,
},
rules: {
...reactHooks.configs.recommended.rules,
// React 19 strict rules — warn for now, tighten to error incrementally
"react-hooks/set-state-in-effect": "warn",
"react-hooks/refs": "warn",
// Align with project convention: logError for catches, not empty blocks
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
},
},
{
ignores: ["dist/", "src-tauri/", "*.config.js", "*.config.ts"],
},
);