{"id":26241,"library":"remark-lint-no-chinese-punctuation-in-number","title":"remark-lint-no-chinese-punctuation-in-number","description":"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.","status":"active","version":"0.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/laysent/remark-lint-plugins","tags":["javascript","remark","remark-lint","lint","rule"],"install":[{"cmd":"npm install remark-lint-no-chinese-punctuation-in-number","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-no-chinese-punctuation-in-number","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-no-chinese-punctuation-in-number","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"required by remark-lint plugins","package":"unified-lint-rule","optional":false},{"reason":"peer dependency; required for integration","package":"remark-lint","optional":true}],"imports":[{"note":"The package exports a single function as default; named destructuring fails.","wrong":"const { remarkLintNoChinesePunctuationInNumber } = require('remark-lint-no-chinese-punctuation-in-number')","symbol":"default","correct":"import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number'"},{"note":"Default import is the standard pattern; this is equivalent but unnecessary.","wrong":"import { default as remarkLintNoChinesePunctuationInNumber } from 'remark-lint-no-chinese-punctuation-in-number'","symbol":"remarkLintNoChinesePunctuationInNumber","correct":"import remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number'"},{"note":"CommonJS require returns the module.exports, which is the default function. Destructuring is incorrect.","wrong":"const { default } = require('remark-lint-no-chinese-punctuation-in-number')","symbol":"require","correct":"const remarkLintNoChinesePunctuationInNumber = require('remark-lint-no-chinese-punctuation-in-number')"}],"quickstart":{"code":"import { remark } from 'remark';\nimport remarkLint from 'remark-lint';\nimport remarkLintNoChinesePunctuationInNumber from 'remark-lint-no-chinese-punctuation-in-number';\nimport { readSync } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\n\nconst file = readSync('readme.md');\nremark()\n  .use(remarkLint)\n  .use(remarkLintNoChinesePunctuationInNumber)\n  .process(file)\n  .then((file) => {\n    console.error(reporter(file));\n  });","lang":"javascript","description":"Shows how to use the plugin with remark and remark-lint to lint markdown and report any Chinese punctuation in numbers."},"warnings":[{"fix":"Consider migrating to unified-lint-rule or using remark-lint v8 compatible versions.","message":"Package is based on legacy remark-lint architecture and may not work with future major versions of remark (v13+).","severity":"deprecated","affected_versions":"<=0.1.2"},{"fix":"Manually extend the rule or use a more comprehensive Chinese punctuation linter.","message":"The plugin only detects full-width colon and comma; other Chinese punctuation in numbers (e.g., ；) are not flagged.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install remark-lint-no-chinese-punctuation-in-number --save-dev`","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'remark-lint-no-chinese-punctuation-in-number'"},{"fix":"Ensure the import is using default import: `import plugin from 'remark-lint-no-chinese-punctuation-in-number'`","cause":"The plugin function is not resolved correctly, likely due to incorrect import path or export issue.","error":"Error: Expected a `function` for `this.use`, but got `undefined`"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}