Linter and syntax checker for EJS templates. Version 2.0.1 released September 2022. ESM-only since v2, requires Node 14+. Parses scriptlet and expression tags, replacing template output with whitespace to retain line/column numbers, then validates resulting JavaScript with acorn via node-syntax-error. Distinguishes itself from EJS core by providing meaningful syntax error messages with line context, supporting custom delimiters, CLI and API usage. Does not check for unclosed EJS tags but helps detect malformed scriptlets. Alternatives exist (e.g., eslint-plugin-ejs) but ejs-lint is the standalone, lightweight option.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
ESM-only since v2; use dynamic import or upgrade to Node 14+.
CLI is invoked via the 'ejslint' command, not as a programmatic export.
ejs-lint does not export its own error type; returns node-syntax-error objects.
Shows how to use the ejsLint API to check an EJS template for syntax errors.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.