Skip to main content
Glama
mednabouli

MCP Multi-Context Hook Generator

by mednabouli
prefer-next-image.ts503 B
import { Rule } from 'eslint'; const rule: Rule.RuleModule = { meta: { type: 'suggestion', docs: { description: 'Encourage use of next/image instead of <img>' }, schema: [], }, create(context) { return { JSXOpeningElement(node: any) { if (node.name?.name === 'img') { context.report({ node, message: 'Prefer next/image for better performance and optimization.', }); } }, }; }, }; export default rule;

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/mednabouli/MCPV2'

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