Registry /
testing / remark-preset-lint-starstuff
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
Errors
Common errors & fixes
Error: Cannot find module 'remark-preset-lint-starstuff'
Module not installed or wrong package name.
fixRun: 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.
fixChange 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.
fixUse default import: import preset from 'remark-preset-lint-starstuff'
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.