ESLint parser that allows linting of various plain text file types (e.g., Markdown, JSON, YAML) by treating them as plain text strings. Version 0.1.1 is the current stable release with a slow release cadence. It is designed for use with ESLint's parser option to enable linting rules (like prettier/prettier) in non-JavaScript files. Differentiates from @eslint/markdown by being simpler and file-type agnostic.
npm install eslint-parser-plainVerified import paths — ran on the pinned version, not inferred.
Configures ESLint to use eslint-parser-plain for .md and .json files, enabling prettier rules on them.
Ensure your files are syntactically valid before linting, or combine with another parser for validation.
Use import statements or dynamic import() in CJS contexts. Alternatively, configure ESLint to support ESM parsers.
Do not rely on the AST structure; this parser is intended only for plain text string extraction.
N/A
Change .eslintrc.cjs to .eslintrc.mjs and use import statements, or use dynamic import: const parser = await import('eslint-parser-plain');Run 'npm install eslint-parser-plain --save-dev' and ensure your ESLint configuration points to the correct package name.
Use the named export parseForESLint or import the default as shown in the quickstart.
No dependency data recorded yet.