mirror of
https://github.com/hanzoai/docdb.git
synced 2026-10-30 18:39:39 +00:00
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
{
|
||
"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
|
||
}
|
||
}
|