{"repo":"eslint/markdown","free":true,"listed":false,"github":"https://github.com/eslint/markdown","clone":"git clone https://github.com/eslint/markdown.git","description":"Lint JavaScript code blocks in Markdown documents","language":"JavaScript","stars":577,"topics":["eslint","javascript","ecmascript","markdown","static-code-analysis","linter","development"],"license":"MIT","category":"dev-tools","readme_excerpt":"ESLint Markdown Language Plugin Lint Markdown with ESLint, as well JS, JSX, TypeScript, and more inside Markdown. Usage Installing Install the plugin alongside ESLint v9.15.0 or greater. Type compatibility is guaranteed with ESLint v9.39.0 or greater. You can install ESLint using npm or other package managers: Then, for Node.js and compatible runtimes: For Deno: Configurations Configuration Name Description ---------------------- ---------------------------------------------------------------------------------------------------------- recommended Lints all .md files with the recommended rules and assumes CommonMark format. processor Enables extracting code blocks from all .md files so code blocks can be individually linted. In your eslint.config.js file, import @eslint/markdown and include the recommended config to enable Markdown parsing and linting: You can also modify the recommended config by using extends : Rules Rule Name Description Recommended :----------------------------------------------------------------------------- :------------------------------------------------------------------------------------------------ :-------------: fenced-code-language Require languages for fenced code blocks yes fenced-code-meta Require or disallow metadata for fenced code blocks no heading-increment Enforce heading levels increment by one yes no-bare-urls Disallow bare URLs no no-duplicate-definitions Disallow duplicate definitions yes no-duplicate-headings Disallow duplicate headi","default_branch":null,"files":null,"tree":[],"storefront":"/r/eslint","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/eslint/markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}