Registry / testing / remark-preset-lint-starstuff

remark-preset-lint-starstuff

JSON →
library2.0.7jsnpmunverified

Opinionated remark-lint preset that provides a simple, shareable configuration for linting Markdown and MDX files. Current stable version is 2.0.7 (released April 2025), with a maintenance-focused release cadence. It integrates with Prettier to avoid formatting conflicts and includes rules from remark-preset-lint-consistent and remark-preset-lint-markdown-style-guide. Ideal for developers wanting a zero-fuss linting setup that respects Prettier formatting.

npm install remark-preset-lint-starstuff
INSTALL
IMPORT
SIG · REMARK-PRESET-LINT
R
remark-preset-lint-starstuff
testingjavascriptv2.0.7
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-lint-starstuff
import remarkPresetLintStarstuff from 'remark-preset-lint-starstuff'
const remarkPresetLintStarstuff = require('remark-preset-lint-starstuff')
ESM-only since v2.0.0. Use import statement; CommonJS require is not supported.
Config in package.json
"remarkConfig": { "plugins": ["preset-lint-starstuff"] }
"remarkConfig": { "plugins": ["remark-preset-lint-starstuff"] }
In package.json, use the short preset name 'preset-lint-starstuff' without the 'remark-' prefix.
Programmatic usage
import { remark } from 'remark'; import preset from 'remark-preset-lint-starstuff'; remark().use(preset).processSync('...');
const remark = require('remark'); const preset = require('remark-preset-lint-starstuff'); remark().use(preset).processSync('...');
ESM-only. Use dynamic import or import statements. The preset is a function passed to .use().

Demonstrates installation and usage via package.json config and programmatic API with ESM imports.

// Install: npm install --save-dev remark-preset-lint-starstuff // package.json { "remarkConfig": { "plugins": ["preset-lint-starstuff"] } } // Then run: npx remark README.md // Or programmatically: import { remark } from 'remark'; import preset from 'remark-preset-lint-starstuff'; const file = await remark() .use(preset) .process('# Hello\n\nThis is a test file.'); console.log(String(file)); // outputs lint messages
remark --version
Debug
Known issues
breakingv2.0.0 dropped CommonJS support. All imports must be ESM.
fix
Use import instead of require. If using Node <12, upgrade or stick to v1.x.
affects: >=2.0.0
deprecatedv1.x is no longer maintained. Upgrade to v2.x for continued updates and fixes.
fix
Update to v2.x: npm install remark-preset-lint-starstuff@latest
affects: <2.0.0
gotchaThe preset is sensitive to remark-cli version. Using mismatched versions may cause runtime errors.
fix
Ensure remark and remark-cli are compatible with the preset. Check peer dependency versions in package.json.
affects: >=2.0.0
gotchaThe preset assumes Prettier is installed. Without Prettier, some rules may behave unexpectedly or cause conflicts.
fix
Install Prettier: npm install --save-dev prettier
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'remark-preset-lint-starstuff'
Module not installed or wrong package name.
fix
Run: npm install --save-dev remark-preset-lint-starstuff
ReferenceError: require is not defined in ES module scope
Using require() instead of import in an ESM context.
fix
Change to import statement: import preset from 'remark-preset-lint-starstuff'
TypeError: preset is not a function
Incorrectly importing the preset object instead of the default export.
fix
Use default import: import preset from 'remark-preset-lint-starstuff'
Upgrade
Version history
2.0.7latest on npm
Audit
Dependencies
remarkoptionalCore unified ecosystem for Markdown processing.
remark-clioptionalCLI tool to run remark from the command line.
remark-preset-lint-consistentrequiredProvides consistent linting rules.
remark-preset-lint-markdown-style-guiderequiredProvides markdown style guide rules.
remark-preset-prettierrequiredIntegrates Prettier to avoid formatting conflicts.
remark-frontmatteroptionalSupports frontmatter in Markdown files.
Agent activity
4 hits · last 30 days
node
4
Resources
remark-preset-lint-starstuff — npm install remark-preset-lint-starstuff · libregistry