{"id":26302,"library":"remark-preset-lint-sider","title":"remark-preset-lint-sider","description":"An opinionated remark-lint preset by Sider that focuses on possible errors or mistakes rather than stylistic issues. It provides a set of lint rules for Markdown files using remark-lint. The current stable version is 0.8.2, with no regular release cadence but triggered via GitHub Actions. It is designed for use with remark-cli and requires Node.js ^12.20.0 || ^14.13.1 || >=16.0.0. Unlike other presets that enforce style, this preset targets correctness and common pitfalls.","status":"active","version":"0.8.2","language":"javascript","source_language":"en","source_url":"https://github.com/sider/remark-preset-lint-sider","tags":["javascript","remark","remark-lint","preset","markdown","lint"],"install":[{"cmd":"npm install remark-preset-lint-sider","lang":"bash","label":"npm"},{"cmd":"yarn add remark-preset-lint-sider","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-preset-lint-sider","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"runtime dependency to run linting with the preset","package":"remark-cli","optional":false},{"reason":"core linting engine that the preset configures","package":"remark-lint","optional":false}],"imports":[{"note":"The package is ESM-only. Use import or dynamic import; require() will fail.","wrong":"const preset = require('remark-preset-lint-sider')","symbol":"preset","correct":"import * as preset from 'remark-preset-lint-sider'"},{"note":"Default import is the preset configuration object.","wrong":"","symbol":"default","correct":"import preset from 'remark-preset-lint-sider'"},{"note":"In .remarkrc or package.json, use 'remark-preset-lint-sider' as a plugin key.","wrong":"{\n  \"plugins\": [\"remark-lint-preset-sider\"]\n}","symbol":"remarkConfig","correct":"{\n  \"plugins\": [\"remark-preset-lint-sider\"]\n}"}],"quickstart":{"code":"npm install --save-dev remark-cli remark-preset-lint-sider\nnpx remark --use remark-preset-lint-sider .","lang":"javascript","description":"Install the preset and run linting on all Markdown files in the current directory."},"warnings":[{"fix":"Check the list of rules in the source to understand what is enforced.","message":"The preset is opinionated and may flag rules that other presets ignore. Review rules before adoption.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Node.js to >=12.20.0 or use an older version of the package.","message":"Node.js versions <12.20.0 are not supported.","severity":"deprecated","affected_versions":"<0.8.0"},{"fix":"Use import syntax or dynamic import().","message":"Package is ESM-only since version 0.8.0; CommonJS require() will fail.","severity":"breaking","affected_versions":">=0.8.0"},{"fix":"Combine with remark-preset-lint-consistent or similar for stylistic rules.","message":"The preset does not include any stylistic rules (e.g., line length, emphasis style). Use other presets for style.","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 --save-dev remark-preset-lint-sider' (devDependencies is typical).","cause":"Package not installed; or installed in devDependencies but not in dependencies.","error":"Error: Cannot find module 'remark-preset-lint-sider'"},{"fix":"Use import syntax or set type: 'module' in package.json.","cause":"Using require() in CommonJS environment; package is ESM-only.","error":"SyntaxError: Unexpected token 'export'"},{"fix":"Install the preset via npm.","cause":"Preset listed in .remarkrc but not installed.","error":"Error: Unknown preset remark-preset-lint-sider"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}