{"repo":"textlint-rule/textlint-rule-eslint","free":true,"listed":false,"github":"https://github.com/textlint-rule/textlint-rule-eslint","clone":"git clone https://github.com/textlint-rule/textlint-rule-eslint.git","description":"textlint rule integrate with ESLint.","language":"TypeScript","stars":13,"topics":["textlint","eslint","textlintrule","markdown"],"license":"MIT","category":"productivity","readme_excerpt":"textlint-rule-eslint textlint rule to lint JavaScript in Markdown with ESLint. [!WARNING] Now you can Lint CodeBlock code in ESLint by using @eslint/markdown. Therefore, this rule is maintenance mode Use case ESLint can lint Markdown files using eslint-plugin-markdown. But eslint-plugin-markdown doesn't support disabling Markdown (HTML) comments for ignoring some CodeBlocks. textlint can filter some CodeBlocks using textlint-filter-rule-comments: Sometimes, we want to write broken JavaScript code into a JS CodeBlock for syntax highlight: This is error example of parsing: To ignore ESLint parsing errors that cannot be ignored from the config file, you can use ignoreParsingErrors : Installation Install with npm: npm install textlint-rule-eslint eslint Support Versions: - textlint-rule-eslint@5 : Support ESLint 9 - textlint-rule-eslint@4 : Support ESLint 8 Usage Via .textlintrc (recommended): Via CLI: Options - configFile : string - Required - path to .eslintrc file - langs : string[] - Default: [\"js\", \"javascript\", \"node\", \"jsx\"] - recognize lang of CodeBlock - ignoreParsingErrors : Boolean - Default: false - ignore ESLint parsing errors while still reporting other ESLint errors Fixable textlint-rule-eslint support --fix option. See https://github.com/textlint/textlint/#fixable for more details. Changelog See Releases page. Running tests Install devDependencies and Run npm test : npm ci && npm test Contributing Pull requests and stars are always welcome. For bugs and feature re","default_branch":null,"files":null,"tree":[],"storefront":"/r/textlint-rule","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/textlint-rule/textlint-rule-eslint/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."}