{"library":"remark-lint-table-cell-padding","title":"remark-lint-table-cell-padding","description":"remark-lint rule to warn when GFM table cells are padded inconsistently. Version 5.1.1, part of the remark-lint ecosystem, maintained by the remark organization. It checks whether cells have compact (no spaces around content) or padded (at least one space) style. Supports 'consistent' mode to detect first style, and custom stringLength function for wide characters. ESM-only, requires Node 16+, and needs remark-gfm for GFM table parsing.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-table-cell-padding"],"cli":null},"imports":["import remarkLintTableCellPadding from 'remark-lint-table-cell-padding'","import type { Options } from 'remark-lint-table-cell-padding'","import type { Style } from 'remark-lint-table-cell-padding'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkGfm from 'remark-gfm';\nimport remarkLintTableCellPadding from 'remark-lint-table-cell-padding';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkGfm)\n  .use(remarkLint)\n  .use(remarkLintTableCellPadding, 'padded')\n  .use(remarkStringify)\n  .process('| a |\\n| - |');\n\nconsole.error(reporter(file));\n// Logs: 1:3-1:6 warning Cell padding Cell should be padded remark-lint-table-cell-padding","lang":"typescript","description":"Shows how to set up the lint rule with unified, enabling GFM tables and using 'padded' style.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}