@putout/plugin-apply-numeric-separators
Version:
πPutout plugin adds ability apply numeric separators
43 lines (29 loc) β’ 943 B
Markdown
# @putout/plugin-apply-numeric-separators [![NPM version][NPMIMGURL]][NPMURL]
[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-apply-numeric-separators.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-apply-numeric-separators"npm"
> To improve readability for numeric literals, underscores (`_`) can be used as separators.
>
> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar)
π[**Putout**](https://github.com/coderaiser/putout) plugin apply **numeric separators**. Merged to [`@putout/plugin-math`](https://www.npmjs.com/package/@putout/plugin-math).
## Install
```
npm i @putout/plugin-apply-numeric-separators
```
## Rule
```json
{
"rules": {
"apply-numeric-separators": "on"
}
}
```
## β Example of incorrect code
```js
const t = 10000000;
```
## β
Example of correct code
```js
const t = 10_000_000;
```
## License
MIT