{"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,"search_vec":"'16':42 '5.0.1':86 'cadenc':97 'check':29,109 'current':82 'differenti':106 'ecosystem':27 'esm':38 'esm-on':37 'focus':116 'gfm':14,46,48 'guid':73 'includ':64 'indent':6,17,34,59,111,118 'irregular':99 'javascript':117 'key':105 'lightweight':114 'lint':3,9,26,70,94,119,123,126 'mainten':104 'make':112 'markdown':71 'monorepo':95,103 'node.js':41 'option':55 'packag':19 'part':21,89 'plugin':76 'preset':69,74 'recommend':57 'releas':87,96 'remark':2,8,25,45,68,93,120,122,125 'remark-gfm':44 'remark-lint':7,24,92,121 'remark-lint-no-table-indent':1 'remark-lint-rul':124 'remark-preset-lint-markdown-style-guid':67 'requir':40 'rule':10,52,127,128 'stabl':83 'style':72 'support':50 'tabl':5,15,31,49,61,110,129 'tie':100 'transform':79 'typescript':130 'unifi':81 'version':84 'warn':12","created_at":"2026-05-01T13:49:07.274288+00:00","updated_at":"2026-05-01T13:49:07.274288+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"remark","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/remarkjs/remark-lint.git#main","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/remark-lint-no-table-indentation","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}