Registry / testing / remark-lint-no-chinese-punctuation-in-number

remark-lint-no-chinese-punctuation-in-number

JSON →
library0.1.2jsnpmunverified

A remark-lint rule that warns when Chinese full-width punctuation (e.g., :, ,) is used inside numbers, enforcing correct half-width punctuation like : and ,. Version 0.1.2 is the latest stable release; development appears sporadic with no recent commits. It is a focused, low-configuration plugin for the remark-lint ecosystem, with minimal dependencies.

npm install remark-lint-no-chinese-punctuation-in-number
INSTALL
IMPORT
SIG · REMARK-LINT-NO-CHI
R
remark-lint-no-chinese-punctuation-in-number
testingjavascriptv0.1.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.

default
import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number'
const { remarkLintNoChinesePunctuationInNumber } = require('remark-lint-no-chinese-punctuation-in-number')
The package exports a single function as default; named destructuring fails.
remarkLintNoChinesePunctuationInNumber
import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number'
import { default as remarkLintNoChinesePunctuationInNumber } from 'remark-lint-no-chinese-punctuation-in-number'
Default import is the standard pattern; this is equivalent but unnecessary.
require
const remarkLintNoChinesePunctuationInNumber = require('remark-lint-no-chinese-punctuation-in-number')
const { default } = require('remark-lint-no-chinese-punctuation-in-number')
CommonJS require returns the module.exports, which is the default function. Destructuring is incorrect.

Shows how to use the plugin with remark and remark-lint to lint markdown and report any Chinese punctuation in numbers.

import { remark } from 'remark'; import remarkLint from 'remark-lint'; import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number'; import { readSync } from 'to-vfile'; import { reporter } from 'vfile-reporter'; const file = readSync('readme.md'); remark() .use(remarkLint) .use(remarkLintNoChinesePunctuationInNumber) .process(file) .then((file) => { console.error(reporter(file)); });
Debug
Known issues
deprecatedPackage is based on legacy remark-lint architecture and may not work with future major versions of remark (v13+).
fix
Consider migrating to unified-lint-rule or using remark-lint v8 compatible versions.
affects: <=0.1.2
gotchaThe plugin only detects full-width colon and comma; other Chinese punctuation in numbers (e.g., ;) are not flagged.
fix
Manually extend the rule or use a more comprehensive Chinese punctuation linter.
affects: *
Errors
Common errors & fixes
Cannot find module 'remark-lint-no-chinese-punctuation-in-number'
Package not installed or not in node_modules.
fix
Run `npm install remark-lint-no-chinese-punctuation-in-number --save-dev`
Error: Expected a `function` for `this.use`, but got `undefined`
The plugin function is not resolved correctly, likely due to incorrect import path or export issue.
fix
Ensure the import is using default import: `import plugin from 'remark-lint-no-chinese-punctuation-in-number'`
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
unified-lint-rulerequiredrequired by remark-lint plugins
remark-lintoptionalpeer dependency; required for integration
Agent activity
2 hits · last 30 days
node
2
Resources
remark-lint-no-chinese-punctuation-in-number — npm install remark-lint-no-chinese-punctuation-in-number · libregistry