eslint-plugin-numeric-separators
v0.0.3
Published
ESLint rule to make long numbers more readable
Downloads
9
Maintainers
Readme
Use-numeric-separators (use-numeric-separators)
'Long numbers' are numbers that have a length longer than 3.
Installation
- Coming soon
Rule Details
The use-numeric-separators
rule aims to make code more readable by ensuring that long numbers uses "_".
Examples of incorrect code for this rule:
/*eslint use-numeric-separators: "error"*/
const number = 1000;
Examples of correct code for this rule:
/*eslint use-numeric-separators: "error"*/
const number = 1_000;
TODOs
- Github Actions To Publish
Resources I've Used
- ESLint's official developer guide to making rules
- "Ensure code quality; create your own ESLint rules"
- "How I built my first custom ESLint rule"
- AST Explorer
- Fantastic existing examples:
- ESLint's
no-magic-numbers
rule eslint-plugin-jsx-a11y
'slang
rule
- ESLint's