Registry / testing / remark-preset-lint-sider

remark-preset-lint-sider

JSON →
library0.8.2jsnpmunverified

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.

npm install remark-preset-lint-sider
INSTALL
IMPORT
SIG · REMARK-PRESET-LINT
R
remark-preset-lint-sider
testingjavascriptv0.8.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

preset
import * as preset from 'remark-preset-lint-sider'
const preset = require('remark-preset-lint-sider')
The package is ESM-only. Use import or dynamic import; require() will fail.
default
import preset from 'remark-preset-lint-sider'
Default import is the preset configuration object.
remarkConfig
{ "plugins": ["remark-preset-lint-sider"] }
{ "plugins": ["remark-lint-preset-sider"] }
In .remarkrc or package.json, use 'remark-preset-lint-sider' as a plugin key.

Install the preset and run linting on all Markdown files in the current directory.

npm install --save-dev remark-cli remark-preset-lint-sider npx remark --use remark-preset-lint-sider .
remark --version
Debug
Known issues
gotchaThe preset is opinionated and may flag rules that other presets ignore. Review rules before adoption.
fix
Check the list of rules in the source to understand what is enforced.
affects: all
deprecatedNode.js versions <12.20.0 are not supported.
fix
Upgrade Node.js to >=12.20.0 or use an older version of the package.
affects: <0.8.0
breakingPackage is ESM-only since version 0.8.0; CommonJS require() will fail.
fix
Use import syntax or dynamic import().
affects: >=0.8.0
gotchaThe preset does not include any stylistic rules (e.g., line length, emphasis style). Use other presets for style.
fix
Combine with remark-preset-lint-consistent or similar for stylistic rules.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'remark-preset-lint-sider'
Package not installed; or installed in devDependencies but not in dependencies.
fix
Run 'npm install --save-dev remark-preset-lint-sider' (devDependencies is typical).
SyntaxError: Unexpected token 'export'
Using require() in CommonJS environment; package is ESM-only.
fix
Use import syntax or set type: 'module' in package.json.
Error: Unknown preset remark-preset-lint-sider
Preset listed in .remarkrc but not installed.
fix
Install the preset via npm.
Upgrade
Version history
0.8.2latest on npm
Audit
Dependencies
remark-clirequiredruntime dependency to run linting with the preset
remark-lintrequiredcore linting engine that the preset configures
Agent activity
4 hits · last 30 days
node
4
Resources
remark-preset-lint-sider — npm install remark-preset-lint-sider · libregistry