Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
75 lines (74 loc) · 2.06 KB
/
Copy patheslint.config.js
File metadata and controls
75 lines (74 loc) · 2.06 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import js from "@eslint/js";
import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";
import globals from "globals";
export default [
{
ignores: [
"build/**",
"release/**",
"android/**/build/**",
"node_modules/**",
".memory/**",
".papercuts/**",
".agents/**",
"resources/generative-ui/**",
"packages/cli/dist/**",
"**/node_modules/**",
],
},
js.configs.recommended,
{
files: [
"scripts/aiden-remote-*.mjs",
"packages/cli/**/*.mjs",
"scripts/ios-asc-monitor*.mjs",
"scripts/ios-live-activity-process-proof*.mjs",
"scripts/vendor-generative-ui-libs.mjs",
],
languageOptions: {
globals: { ...globals.node },
},
},
{
files: ["**/*.{ts,tsx}"],
languageOptions: {
parser: tsParser,
parserOptions: { ecmaVersion: "latest", sourceType: "module", ecmaFeatures: { jsx: true } },
globals: { ...globals.browser, ...globals.node },
},
plugins: { "@typescript-eslint": tsPlugin },
rules: {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"no-undef": "off"
},
},
{
files: ["main/**/*.{ts,tsx}"],
ignores: ["main/**/*.test.{ts,tsx}", "main/platform.ts"],
rules: {
"no-console": "error",
},
},
{
// The desktop MCP client is Pi's (`@earendil-works/pi-mcp`). The official
// SDK stays only for code that hosts MCP servers (the ACP bridge).
files: ["main/**/*.{ts,tsx,mjs}", "renderer/**/*.{ts,tsx}"],
ignores: ["main/services/acp/**"],
rules: {
"no-restricted-imports": ["error", {
patterns: [{
group: ["@modelcontextprotocol/sdk/client", "@modelcontextprotocol/sdk/client/*"],
message: "Use Pi's MCP client (@earendil-works/pi-mcp) for MCP client code. The SDK is only for hosting MCP servers.",
}],
}],
},
},
{
files: ["main/platform.ts"],
rules: {
"no-console": "off",
},
},
];