{"id":26261,"library":"remark-lint-no-hidden-table-cell","title":"remark-lint-no-hidden-table-cell","description":"remark-lint rule to warn for superfluous table cells that are hidden because a row has more cells than the header row. Current stable version: 1.0.1. Part of the remark-lint monorepo maintained by unified collective. Released in 2024. Supports GFM tables via remark-gfm. ESM-only, ships TypeScript types. Unlike general table linting, this rule specifically catches rows with extra cells that are not rendered.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","align","cell","gfm","github","lint","remark","remark-lint","remark-lint-rule","typescript"],"install":[{"cmd":"npm install remark-lint-no-hidden-table-cell","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-no-hidden-table-cell","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-no-hidden-table-cell","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"unified ecosystem core; required to use remark plugins","package":"unified","optional":false},{"reason":"required to run lint rules; provides the lint infrastructure","package":"remark-lint","optional":false},{"reason":"required for GFM table support; needed to parse tables correctly","package":"remark-gfm","optional":true}],"imports":[{"note":"ESM-only since v1.0.0; no named export, default export only.","wrong":"const { remarkLintNoHiddenTableCell } = require('remark-lint-no-hidden-table-cell')","symbol":"remarkLintNoHiddenTableCell","correct":"import remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell'"},{"note":"remark-lint also has a default export; named export does not exist.","wrong":"import { remarkLint } from 'remark-lint'","symbol":"remarkLint","correct":"import remarkLint from 'remark-lint'"},{"note":"ESM-only. Used for parsing markdown.","wrong":"const remarkParse = require('remark-parse')","symbol":"remarkParse","correct":"import remarkParse from 'remark-parse'"}],"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintNoHiddenTableCell from 'remark-lint-no-hidden-table-cell'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport remarkGfm from 'remark-gfm'\nimport { read } from 'to-vfile'\nimport { unified } from 'unified'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkGfm)\n  .use(remarkLint)\n  .use(remarkLintNoHiddenTableCell)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Sets up a unified pipeline to lint a markdown file for hidden table cells, using GFM support."},"warnings":[{"fix":"Use import instead of require. Set type: 'module' in package.json.","message":"ESM-only package: require() will throw ERR_REQUIRE_ESM.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Upgrade Node.js to version 16 or later.","message":"Requires Node.js 16+ as of version 1.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Install remark-gfm and add .use(remarkGfm) before linting.","message":"Does not work without remark-gfm for tables using GitHub Flavored Markdown.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Do not pass any parameters. Use as .use(remarkLintNoHiddenTableCell).","message":"The plugin has no options; attempting to pass options will be silently ignored.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Switch to import statement or use dynamic import().","cause":"Using CommonJS require() to import an ESM-only module.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module ... not supported"},{"fix":"Install remark-gfm and add .use(remarkGfm) to the pipeline.","cause":"Missing remark-gfm plugin to parse GFM tables.","error":"Could not parse table: unrecognized table row structure"},{"fix":"Run npm install remark-lint.","cause":"remark-lint is not installed in the project.","error":"Cannot find module 'remark-lint'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}