This package, `vue-eslint-parser-template-tokenizer-pug`, serves as an internal tokenizer specifically designed for `vue-eslint-parser` to handle Pug (formerly Jade) templates within Vue Single File Components. Its primary function is to convert Pug syntax within `<template lang="pug">` blocks into a format that `vue-eslint-parser` can then process to generate an Abstract Syntax Tree (AST) for linting. It is currently at version 1.0.0. While actively maintained, it is *not* intended for direct end-user consumption. Users who wish to lint Pug templates in Vue applications should instead use `eslint-plugin-vue-pug`, which leverages this library internally. Its release cadence is tied to the needs of `eslint-plugin-vue-pug` and `vue-eslint-parser`, meaning updates are driven by functional requirements rather than a fixed schedule.
npm install vue-eslint-parser-template-tokenizer-pugVerified import paths — ran on the pinned version, not inferred.
Demonstrates how `vue-eslint-parser-template-tokenizer-pug` is configured with `vue-eslint-parser` to lint a Vue SFC with Pug templates, emphasizing its internal role rather than direct end-user API usage.
Install `eslint-plugin-vue-pug` and configure it in your ESLint setup. Do not directly import or use `vue-eslint-parser-template-tokenizer-pug` unless developing an ESLint plugin that requires custom tokenizer integration.
Be aware that not all Pug parsing issues might be immediately reported as ESLint errors. Rely on `eslint-plugin-vue-pug`'s integrated rules for comprehensive validation. Report specific un-reported parsing issues to `eslint-plugin-vue-pug` or `vue-eslint-parser`.
Refer to the `vue-eslint-parser` and `eslint-plugin-vue-pug` documentation for the latest configuration requirements and updates regarding custom template tokenizers.
Ensure `vue-eslint-parser-template-tokenizer-pug` is listed in your project's `devDependencies` and installed (`npm install` or `yarn install`). Verify the import path is correct if used directly, or that `eslint-plugin-vue-pug` is correctly configured.
Ensure `vue-eslint-parser` is correctly set as the `parser` in your ESLint configuration and that `parserOptions.templateTokenizer.pug` points to this package (usually handled by `eslint-plugin-vue-pug`).