Pluggable email template code linter
npm install emlintPluggable email template code linter
This package is pure ESM. If you're not ready yet, install an older version of this program, 4.7.0 (npm i emlint@4.7.0).
``bash`
npm i emlint
`js
import { strict as assert } from "assert";
import { Linter } from "emlint";
const linter = new Linter();
// Correct "not" type Outlook conditional would be:
//
// z
//
// We have a "not" type opening but "only" type
// closing:
const messages = linter.verify(
z,
{
rules: {
all: 2,
},
}
);
assert.deepEqual(messages, [
{
line: 3,
column: 1,
severity: 2,
ruleId: "comment-mismatching-pair",
message: Add "