UNPKG

eslint-plugin-htm

Version:

An incredible ESLint plugin for HTML based on HTMLHint

30 lines 792 B
import { version } from './meta.js'; export const meta = { name: 'htm-eslint', version, }; export const parseForESLint = (text, _options) => { const lines = text.split('\n'); return { ast: { type: 'Program', sourceType: 'module', comments: [], tokens: [], body: [], range: [0, text.length], loc: { start: { line: 1, column: 0, }, end: { line: lines.length, column: lines.at(-1)?.length ?? 0, }, }, }, }; }; export const parse = (text, options) => parseForESLint(text, options).ast; //# sourceMappingURL=parser.js.map