Skip to main content
Glama

MCP Agent TypeScript Port

by waldzellai
no-negated-in-lhs.js1.19 kB
/** * @fileoverview A rule to disallow negated left operands of the `in` operator * @author Michael Ficarra * @deprecated in ESLint v3.3.0 */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ /** @type {import('../shared/types').Rule} */ module.exports = { meta: { type: "problem", docs: { description: "Disallow negating the left operand in `in` expressions", recommended: false, url: "https://eslint.org/docs/latest/rules/no-negated-in-lhs" }, replacedBy: ["no-unsafe-negation"], deprecated: true, schema: [], messages: { negatedLHS: "The 'in' expression's left operand is negated." } }, create(context) { return { BinaryExpression(node) { if (node.operator === "in" && node.left.type === "UnaryExpression" && node.left.operator === "!") { context.report({ node, messageId: "negatedLHS" }); } } }; } };

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/waldzellai/mcp-agent-ts'

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