Skip to content

aborazmeh/textlint-rule-no-mixed-punctuations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-no-mixed-punctuations Actions Status: test textlint rule

prevents the mixing of LTR and RTL punctuations

Install

Install with npm:

npm install textlint-rule-no-mixed-punctuations

Fixable

textlint rule

textlint --rule no-mixed-punctuations --fix README.md

Example

"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?"

Usage

Via .textlintrc.json(Recommended)

{
    "rules": {
        "no-mixed-punctuations": {
          "language": "english"  // choices: 'arabic', 'english
        }
    }
}

Via CLI

textlint --rule no-mixed-punctuations README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT © aborazmeh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published