Linting
Given email correctness lies on a spectrum, Brail offers an eslint plugin to ascertain just how much email client support your code might have. As well as arbitrary linting rules, the plugin uses up-to-date data on email client support, sourced from caniemail.com (opens in a new tab).
Full credit for the data and other email wisdom: HTeuMeuLeu (opens in a new tab).
To install the plugin:
pnpm add -D @brail/eslint-plugin
Add the following to your eslint configuration:
{
// ...
plugins: ["@brail"],
extends: ["plugin:@brail/recommended"],
// ...
}