-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
29 lines (28 loc) · 1.22 KB
/
Copy patheslint.config.js
File metadata and controls
29 lines (28 loc) · 1.22 KB
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
28
29
// Daemon-side ESLint (#B.200). Minimal scope: catch unused imports
// (auto-fixable) and unused locals. tsc with noUnusedLocals already
// guards the build — this surfaces the same issues faster in editor
// + offers `--fix` to remove dead imports in bulk.
import tseslint from "typescript-eslint";
import unusedImports from "eslint-plugin-unused-imports";
export default tseslint.config(
{
ignores: ["dist/**", "node_modules/**", "frontend/**", "drizzle/**"],
},
...tseslint.configs.recommended,
{
plugins: { "unused-imports": unusedImports },
rules: {
"@typescript-eslint/no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{ args: "after-used", argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
// The daemon does plenty of typed-but-untyped boundary work
// (sqlite rows, parseMeta JSON, etc.); recommended rules that
// double up with tsc's strict checks would just create noise.
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-object-type": "off",
},
},
);