so1ve / eslint-parser-plain

Parse any text file to valid ESTree, useful for eslint-plugin-prettier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-parser-plain

NPM version

Allow you to parse various types of files with ESLint.

πŸ“¦ Installation

$ npm install eslint-parser-plain -D
$ yarn add eslint-parser-plain -D
$ pnpm add eslint-parser-plain -D

πŸš€ Usage

In your eslint config file:

module.exports = {
  overrides: [
    {
      files: ["*.md"],
      parser: "eslint-parser-plain",
      rules: {
        "prettier/prettier": ["error", { parser: "markdown" }],
      },
    },
  ],
};

That's it!

πŸ“ License

MIT. Made with ❀️ by Ray

About

Parse any text file to valid ESTree, useful for eslint-plugin-prettier

License:MIT License


Languages

Language:TypeScript 100.0%