npm explorer

emlint

v6.0.12TypeScript

Pluggable email template code linter

analysisautomaticautomaticallybrokencheckcodecssdevelopmentemailerrors
0/weekUpdated 2 years agoMITUnpacked: 246.0 KB
Published by Roy Revelt
npm install emlint
RepositoryHomepagenpm

emlint

Pluggable email template code linter



page on codsen.com


page on npm


page on github


Downloads per month


changelog

MIT Licence

Install

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
`

Quick Take

`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 "