# remark-lint-spaces-around-number

> remark lint plugin that checks if there are spaces between number and Chinese

Latest version **0.1.2** (published 2021-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install remark-lint-spaces-around-number
pnpm add remark-lint-spaces-around-number
yarn add remark-lint-spaces-around-number
bun add remark-lint-spaces-around-number
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2021-02-18 |
| First published | 2019-03-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | LaySent |
| Maintainers | laysent |
| Keywords | remark, remark-lint, lint, rule |

## Links

- npm: https://www.npmjs.com/package/remark-lint-spaces-around-number
- Repository: https://github.com/laysent/remark-lint-plugins
- Issues: https://github.com/laysent/remark-lint-plugins/issues
- npm.io page: https://npm.io/package/remark-lint-spaces-around-number

## Dependencies (2)

- [unified-lint-rule](https://npm.io/package/unified-lint-rule.md) ^1.0.3
- [unist-util-to-list-of-char](https://npm.io/package/unist-util-to-list-of-char.md) ^0.1.3

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2021-02-18
- 0.1.1 — 2019-03-02

## README

# remark-lint-spaces-around-number

According to
[chinese-document-style-guide](https://github.com/ruanyf/document-style-guide),
one way of organize number and Chinese is to have space in between.
This lint will warn when space is missing in such cases.

## Example

**`valid.md`**

**In**

```markdown
理财产品的收益是 4.0% 左右。
```

**Out**

No messages.

**`invalid.md`**

**In**

```markdown
理财产品的收益是 4.0%左右。
```

**Out**

```text
input.md:1:10-1:13: Should have space after "4.0%"
```

## Install

```sh
npm install remark-lint-spaces-around-number
```

## Usage

You probably want to use it on the CLI through a config file:

```diff
 ...
 "remarkConfig": {
   "plugins": [
     ...
     "remark-lint",
+    "remark-lint-spaces-around-number",
     ...
   ]
 }
 ...
```

Or use it on the CLI directly

```sh
remark -u remark-lint -u remark-lint-spaces-around-number readme.md
```

Or use this on the API:

```diff
 var remark = require('remark');
 var report = require('vfile-reporter');

 remark()
   .use(require('remark-lint'))
+  .use(require('remark-lint-spaces-around-number'))
   .process('_Emphasis_ and **importance**', function (err, file) {
     console.error(report(err || file));
   });
```

## License

[MIT](https://github.com/laysent/remark-lint-plugins/blob/master/license) © [LaySent](https://github.com/laysent)

---
_Source: https://npm.io/package/remark-lint-spaces-around-number · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
