
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@email-lint/react-email
Advanced tools
Lint react-email components for client compatibility using email-lint.
Lint React Email components for client compatibility. Renders your component to HTML and validates it against caniemail data using @email-lint/core.
import { lintComponent } from '@email-lint/react-email';
import { Welcome } from './emails/welcome';
const result = await lintComponent(<Welcome name="Jane" />);
console.log(result.success); // true
console.log(result.errorCount); // 0
console.log(result.diagnostics); // LintDiagnostic[]
npm install @email-lint/react-email
Peer dependencies: react and @react-email/render.
lintComponent(element, config?)Renders a React element to HTML via @react-email/render, then lints it with email-lint.
Framework-aware filtering is enabled by default — diagnostics caused by React Email internals (preview text blocks, preload image tags, forced target="_blank") are automatically suppressed. Pass framework: undefined to opt out.
// Lint against specific clients
const result = await lintComponent(<Welcome />, { preset: 'gmail' });
// Disable framework filtering
const result = await lintComponent(<Welcome />, { framework: undefined });
// Keep suppressed diagnostics visible
const result = await lintComponent(<Welcome />, { showIgnored: true });
Returns the same LintResult type as @email-lint/core — see @email-lint/core docs for the full type reference.
import { describe, it, expect } from 'vitest';
import { lintComponent } from '@email-lint/react-email';
import { Welcome } from './emails/welcome';
describe('email compatibility', () => {
it('Welcome has no errors', async () => {
const result = await lintComponent(<Welcome name="Jane" />);
expect(result.errorCount).toBe(0);
});
it('Welcome passes Gmail checks', async () => {
const result = await lintComponent(<Welcome name="Jane" />, { preset: 'gmail' });
expect(result.success).toBe(true);
});
});
MIT
FAQs
Lint react-email components for client compatibility using email-lint.
The npm package @email-lint/react-email receives a total of 425 weekly downloads. As such, @email-lint/react-email popularity was classified as not popular.
We found that @email-lint/react-email demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.