Parse various types of files with ESLint.
npm install eslint-parser-plain
Allow you to parse various types of files with ESLint.
``bash`
$ npm install eslint-parser-plain -D
$ yarn add eslint-parser-plain -D
$ pnpm add eslint-parser-plain -D
In your eslint config file:
`ts``
module.exports = {
overrides: [
{
files: ["*.md"],
parser: "eslint-parser-plain",
rules: {
"prettier/prettier": ["error", { parser: "markdown" }],
},
},
],
};
That's it!