Files

42 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"rules": {
"@0x6b/normalize-whitespaces": true,
"no-zero-width-spaces": true,
"one-sentence-per-line": true,
"@textlint-rule/pattern": {
"patterns": [
// mostly to keep JS/JSON snippets with correct
{
"message": "Use straight ASCII double quotes instead of curly double quotes",
"pattern": "/“|”/",
"replace": "\"",
"forceCode": true
},
{
"message": "Use straight ASCII single quotes instead of curly single quotes",
"pattern": "/‘|’/",
"replace": "'",
"forceCode": true
},
// to prevent --flags from being converted to en dashes or em dashes
{
"message": "Use en dashes with spaces instead of em dashes",
"pattern": "/—/",
"replace": " – ",
"forceCode": true
},
{
"message": "Use en dashes with spaces",
"pattern": "/(\\S)–([\\S])/",
"replace": "$1 – $2",
"forceCode": true
}
]
}
},
"filters": {
"comments": true
}
}