Skip to main content
Glama
mednabouli

MCP Multi-Context Hook Generator

by mednabouli
no-fixed-width.ts732 B
import { Rule } from 'eslint'; const TAILWIND_FIXED_RE = /\bw-(?:\d+|\[\d+px\])\b/; const rule: Rule.RuleModule = { meta: { type: 'suggestion', docs: { description: 'Warn about fixed widths that harm responsiveness' }, schema: [], }, create(context) { return { JSXAttribute(node: any) { if (node.name?.name === 'className' || node.name?.name === 'class') { const value = node.value?.value; if (typeof value === 'string' && TAILWIND_FIXED_RE.test(value)) { context.report({ node, message: 'Avoid hard fixed widths. Use responsive utilities instead.', }); } } }, }; }, }; 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