Skip to content

Commit dc6e270

Browse files
committed
Add lazy-enforcing eslint rules
1 parent 795bfb5 commit dc6e270

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

packages/vscode-inproc-mcp/.eslintrc.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,23 @@
5555
"eqeqeq": "warn", // Should use `===`, not `==`, nearly 100% of the time
5656
"no-extra-boolean-cast": "off", // We !!flatten a lot of things into booleans this way
5757
"no-throw-literal": "warn", // Elevate this from suggestion to warning
58-
"semi": "off" // Covered by @typescript-eslint/semi
58+
"semi": "off", // Covered by @typescript-eslint/semi
59+
"@typescript-eslint/no-restricted-imports": [
60+
"error",
61+
{
62+
"patterns": [
63+
{
64+
"group": [
65+
"express",
66+
"@modelcontextprotocol/*",
67+
"@microsoft/vscode-azext*"
68+
],
69+
"message": "Please lazily import this package within the function that uses it to reduce extension activation time.",
70+
"allowTypeImports": true
71+
}
72+
]
73+
}
74+
]
5975
},
6076
"extends": [
6177
"eslint:recommended",

0 commit comments

Comments
 (0)