forked from duanyytop/agents-radar
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
22 lines (21 loc) · 835 Bytes
/
eslint.config.js
File metadata and controls
22 lines (21 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import js from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
export default tseslint.config(
{ ignores: ["node_modules", "dist"] },
js.configs.recommended,
tseslint.configs.recommended,
eslintConfigPrettier,
{
rules: {
// Allow console.log/error — this is a CLI script
"no-console": "off",
// Ignore intentionally unused vars prefixed with _
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
// Don't require explicit return types everywhere — TypeScript infers them
"@typescript-eslint/explicit-function-return-type": "off",
// Allow non-null assertions where we know data exists
"@typescript-eslint/no-non-null-assertion": "off",
},
},
);