textlint-rule-numeral-systems v1.0.0
textlint-rule-numeral-systems 
 
Unify the usage of Arabic, Arabic-Indic and Farsi numbers in a single text
Fixable
textlint --rule numeral-systems --fix README.mdExample
In ١٧٩٩, during Napoleon's campaign in Egypt, a French soldier discovered the Rosetta Stone near the town of Rosetta (modern-day Rashid). The number ۱۹۶ comes into play as it was the year 196 BCE when the decree inscribed on the Rosetta Stone was written. This decree was issued by Ptolemy V, and its purpose was to establish the divine cult of the king.
In 1799, during Napoleon's campaign in Egypt, a French soldier discovered the Rosetta Stone near the town of Rosetta (modern-day Rashid). The number 196 comes into play as it was the year 196 BCE when the decree inscribed on the Rosetta Stone was written. This decree was issued by Ptolemy V, and its purpose was to establish the divine cult of the king.
Install
Install with npm:
npm install textlint-rule-numeral-systemsUsage
Via .textlintrc.json(Recommended)
{
    "rules": {
        "numeral-systems": {
          "default_numbers" : "arabic"  // can be: 'arabic', 'indic' or 'persian
        }
    }
}Via CLI
textlint --rule numeral-systems README.mdBuild
Builds source codes for publish to the lib folder.
You can write ES2015+ source codes in src/ folder.
npm run buildTests
Run test code in test folder.
Test textlint rule by textlint-tester.
npm testLicense
MIT © aborazmeh
1 year ago