{"id":26271,"library":"remark-lint-no-table-indentation","title":"remark-lint-no-table-indentation","description":"remark-lint rule to warn when GFM tables are indented. This package is part of the remark-lint ecosystem and checks that tables are not indented. It is ESM-only (requires Node.js 16+ and `remark-gfm` for GFM table support). The rule has no options and recommends no indentation for tables. It is included in the `remark-preset-lint-markdown-style-guide` preset. The plugin is a `Transformer` from unified. Current stable version is 5.0.1 released as part of the remark-lint monorepo. Release cadence is irregular, tied to the monorepo maintenance. Key differentiator: it only checks table indentation, making it lightweight and focused.","status":"active","version":"5.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","indent","lint","remark","remark-lint","remark-lint-rule","rule","table","typescript"],"install":[{"cmd":"npm install remark-lint-no-table-indentation","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-no-table-indentation","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-no-table-indentation","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"The rule is a plugin for remark-lint; it must be used with remark-lint.","package":"remark-lint","optional":false}],"imports":[{"note":"ESM-only since v5; CommonJS require is not supported.","wrong":"const remarkLintNoTableIndentation = require('remark-lint-no-table-indentation')","symbol":"remarkLintNoTableIndentation","correct":"import remarkLintNoTableIndentation from 'remark-lint-no-table-indentation'"}],"quickstart":{"code":"import {unified} from 'unified'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport remarkLint from 'remark-lint'\nimport remarkLintNoTableIndentation from 'remark-lint-no-table-indentation'\nimport {reporter} from 'vfile-reporter'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoTableIndentation)\n  .use(remarkStringify)\n  .process('# Hello\\n\\n | a | b |\\n | - | - |\\n | 1 | 2 |\\n')\n\nconsole.error(reporter(file))","lang":"typescript","description":"This shows how to use the rule in a unified pipeline to lint a markdown string for indented GFM tables."},"warnings":[{"fix":"Convert to ESM with import syntax, or use dynamic import().","message":"Package is ESM-only. CommonJS require will throw an error.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"Ensure you use async/await or handle promises.","message":"This rule is part of remark-lint and only works with unified's async transformer model.","severity":"deprecated","affected_versions":"all"},{"fix":"Install remark-gfm and add it to the unified pipeline before this rule.","message":"The rule requires remark-gfm to be used if you have GFM tables, otherwise no table AST nodes are generated.","severity":"gotcha","affected_versions":"all"},{"fix":"Do not pass any options; the rule accepts none.","message":"The rule has no options. Misconfigured options are silently ignored.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install remark-lint-no-table-indentation` and ensure you are using ESM import.","cause":"Package not installed or incorrect import path.","error":"Cannot find module 'remark-lint-no-table-indentation'"},{"fix":"Use ESM with `import` or `import()` dynamic import.","cause":"Using CommonJS require with an ESM-only package.","error":"SyntaxError: Unexpected token '?'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}