prevents the mixing of LTR and RTL punctuations
Install with npm:
npm install textlint-rule-no-mixed-punctuations
textlint --rule no-mixed-punctuations --fix README.md
"After a long, arduous journey through the dense forest، filled with towering trees and echoing sounds of wildlife؛ how did they finally find their way to the hidden, mystical waterfall, cascading down into a tranquil pool؟"
"After a long, arduous journey through the dense forest, filled with towering trees and echoing sounds of wildlife; how did they finally find their way to the hidden, mystical waterfall, cascading down into a tranquil pool?"
Via .textlintrc.json
(Recommended)
{
"rules": {
"no-mixed-punctuations": {
"language": "english" // choices: 'arabic', 'english
}
}
}
Via CLI
textlint --rule no-mixed-punctuations README.md
Builds source codes for publish to the lib
folder.
You can write ES2015+ source codes in src/
folder.
npm run build
Run test code in test
folder.
Test textlint rule by textlint-tester.
npm test
MIT © aborazmeh