Registry /
testing / remark-lint-no-file-name-mixed-case
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.
default
✓ import remarkLintNoFileNameMixedCase from 'remark-lint-no-file-name-mixed-case'
✗ const remarkLintNoFileNameMixedCase = require('remark-lint-no-file-name-mixed-case')
This package is ESM-only. CommonJS require() will fail. Use dynamic import() if needed.
remarkLintNoFileNameMixedCase
✓ import remarkLintNoFileNameMixedCase from 'remark-lint-no-file-name-mixed-case'
✗ import { remarkLintNoFileNameMixedCase } from 'remark-lint-no-file-name-mixed-case'
This package has a default export only. Named import will not work.
type (TypeScript)
✓ import type { Plugin } from 'unified'
No types are exported from this package beyond the default export. Use the default import with unified's Plugin type.
Shows how to use the plugin with unified API to lint file names for mixed case.
import { unified } from 'unified';
import remarkParse from 'remark-parse';
import remarkStringify from 'remark-stringify';
import remarkLint from 'remark-lint';
import remarkLintNoFileNameMixedCase from 'remark-lint-no-file-name-mixed-case';
import { read } from 'to-vfile';
import { reporter } from 'vfile-reporter';
const file = await read('example.md');
await unified()
.use(remarkParse)
.use(remarkLint)
.use(remarkLintNoFileNameMixedCase)
.use(remarkStringify)
.process(file);
console.error(reporter(file));
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/remark-lint-no-file-name-mixed-case/index.js from /path/to/file.js not supported.
Using CommonJS require() to import an ESM-only package.
fixChange to import statement or use dynamic import().
SyntaxError: The requested module 'remark-lint-no-file-name-mixed-case' does not provide an export named 'remarkLintNoFileNameMixedCase'
Trying to import a named export when the package only has a default export.
fixUse default import: import remarkLintNoFileNameMixedCase from 'remark-lint-no-file-name-mixed-case'
Error: Cannot find package 'remark-lint' from '...'
remark-lint is not installed. The plugin depends on remark-lint to function.
fixInstall remark-lint: npm install remark-lint
Audit
Dependencies
unifiedoptionalPeer dependency for remark-lint integration
remark-lintoptionalWhen using the CLI or API, remark-lint must be included as a separate plugin