Registry / testing / remark-lint-no-repeat-punctuation

remark-lint-no-repeat-punctuation

JSON →
library0.1.4jsnpmunverified

A remark-lint plugin that warns when punctuation characters are repeated in series, such as multiple exclamation marks or ellipsis dots. Version 0.1.4, last updated in 2017, with no recent releases. It is a niche plugin for CJK and punctuation normalization, used with remark-lint. Alternative: remark-lint-no-multiple-full-stops but this covers more characters.

npm install remark-lint-no-repeat-punctuation
INSTALL
IMPORT
SIG · REMARK-LINT-NO-REP
R
remark-lint-no-repeat-punctuation
testingjavascriptv0.1.4
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.

default
import noRepeatPunctuation from 'remark-lint-no-repeat-punctuation'
import { noRepeatPunctuation } from 'remark-lint-no-repeat-punctuation'
Package uses CommonJS default export; tree-shaking not supported.
remarkLintNoRepeatPunctuation
const remarkLintNoRepeatPunctuation = require('remark-lint-no-repeat-punctuation')
const { remarkLintNoRepeatPunctuation } = require('remark-lint-no-repeat-punctuation')
CommonJS require yields the plugin function directly; no named exports.
plugin
.use(require('remark-lint-no-repeat-punctuation'))
.use(require('remark-lint-no-repeat-punctuation').default)
Directly pass the required module; no .default needed with require.

Demonstrates using the plugin with remark-lint to detect repeated punctuation.

import { remark } from 'remark'; import remarkLint from 'remark-lint'; import noRepeatPunctuation from 'remark-lint-no-repeat-punctuation'; import reporter from 'vfile-reporter'; remark() .use(remarkLint) .use(noRepeatPunctuation) .process('Hello!!!', (err, file) => { console.error(reporter(err || file)); }); // Output: no-file:1:8: Should not repeat "!"
Debug
Known issues
gotchaDefault punctuation list includes Chinese/Japanese punctuation (!~。,·?) and ASCII equivalents (!~.,?). Only these are flagged; custom list not supported.
fix
If you need to customize punctuation set, fork the package or use a different rule.
affects: >=0.0.0
gotchaPlugin only warns about repeats of the same character; does not detect mixed repeated punctuation (e.g., !?!) or sequences like ... (three dots are handled but as individual repeats).
fix
None; behavior by design.
affects: >=0.0.0
deprecatedPackage has not been updated since 2017; may not work with newer versions of remark/unified ecosystem.
fix
Consider using remark-lint-no-multiple-full-stops for similar functionality or check compatibility with your unified version.
affects: >=0.1.4
Errors
Common errors & fixes
Error: Cannot find module 'remark-lint-no-repeat-punctuation'
Package not installed or not in node_modules.
fix
npm install remark-lint-no-repeat-punctuation
TypeError: remark(...).use is not a function
Unified/remark version mismatch; v10+ changed API.
fix
Use remark@^9 or update to unified@^8 and use .use() correctly.
Warning: Plugins must be functions or tuples, got object
Plugin required incorrectly; not a function.
fix
Use require('remark-lint-no-repeat-punctuation') directly without .default.
Upgrade
Version history
0.1.4latest on npm
Audit
Dependencies
remark-lintrequiredpeer dependency; must be installed to use this rule
unified-lint-ruleoptionalused internally for rule infrastructure
Agent activity
2 hits · last 30 days
node
2
Resources
remark-lint-no-repeat-punctuation — npm install remark-lint-no-repeat-punctuation · libregistry