CLI
CLI project config
Share lint severity and skip rules between the CLI and VS Code extension via .emailensrc or package.json.
The CLI reads the same project config as the VS Code extension:
.emailensrcat the repo root, or- an
"emailens"key inpackage.json
Example
{
"skip": ["spam"],
"rules": {
"border-radius": "error",
"font-size": "off"
}
}rules
Severity per rule id or CSS property name (border-radius, insecure-link, etc.):
error,warning,info, promote or demote findingsoff, drop the rule entirely
Promoting a rule to error makes emailens lint exit with code 1 when it fires.
skip
Skip entire audit categories in lint (same values as the CLI --skip flag). Unknown skip values are reported on stderr and ignored.
Precedence
- CLI flags override the file for that invocation.
- In the editor, the repo file wins over personal settings so CI and the team agree.
Malformed config files are ignored for lint (with a stderr warning) rather than failing the command.