1.2.2 β€’ Published 2 years ago

@putout/plugin-apply-numeric-separators v1.2.2

Weekly downloads
2,094
License
MIT
Repository
github
Last release
2 years ago

@putout/plugin-apply-numeric-separators NPM version

To improve readability for numeric literals, underscores (_) can be used as separators.

(c) MDN

🐊Putout plugin apply numeric separators. Merged to @putout/plugin-math.

Install

npm i @putout/plugin-apply-numeric-separators

Rule

{
    "rules": {
        "apply-numeric-separators": "on"
    }
}

❌ Example of incorrect code

const t = 10000000;

βœ… Example of correct code

const t = 10_000_000;

License

MIT