Skip to main content
Glama
no_deno_env_get.ts713 B
/** * Lint rule to prevent direct usage of Deno.env.get() which bypasses * proper environment variable handling and configuration management. */ export const noDenoEnvGet = { // deno-lint-ignore no-explicit-any create(context: any) { return { // Match calls to Deno.env.get() 'CallExpression[callee.object.object.name="Deno"][callee.object.property.name="env"][callee.property.name="get"]'( // deno-lint-ignore no-explicit-any node: any, ) { context.report({ node, message: "Direct usage of Deno.env.get() is not allowed. Use proper CLI parsing and configuration injection methods instead.", }); }, }; }, };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/systeminit/si'

If you have feedback or need assistance with the MCP directory API, please join our Discord server