Skip to content

Commit affd6bf

Browse files
committed
Add a generic bad-spelling rule
1 parent 69c3eda commit affd6bf

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.markdownlint-cli2.jsonc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@
189189
"search": "](https://developer.mozilla.org/",
190190
"replace": "](/",
191191
"skipCode": true
192+
},
193+
{
194+
"name": "bad-spelling",
195+
"message": "Incorrect spelling",
196+
"searchPattern": ["/e-mail/ig"],
197+
"replace": ["email"],
198+
"skipCode": false
192199
}
193200
]
194201
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"husky": "8.0.2",
3030
"lint-staged": "13.1.0",
3131
"markdownlint-cli2": "0.5.1",
32-
"markdownlint-rule-search-replace": "1.0.6",
32+
"markdownlint-rule-search-replace": "1.0.7",
3333
"prettier": "2.8.1"
3434
}
3535
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3187,10 +3187,10 @@ markdownlint-rule-helpers@~0.17.2:
31873187
resolved "https://registry.yarnpkg.com/markdownlint-rule-helpers/-/markdownlint-rule-helpers-0.17.2.tgz#64d6e8c66e497e631b0e40cf1cef7ca622a0b654"
31883188
integrity sha512-XaeoW2NYSlWxMCZM2B3H7YTG6nlaLfkEZWMBhr4hSPlq9MuY2sy83+Xr89jXOqZMZYjvi5nBCGoFh7hHoPKZmA==
31893189

3190-
3191-
version "1.0.6"
3192-
resolved "https://registry.yarnpkg.com/markdownlint-rule-search-replace/-/markdownlint-rule-search-replace-1.0.6.tgz#c93fe70c74ecb2d66dd79fc002cf46f46f17aed0"
3193-
integrity sha512-w2dWPz7QnaYbMMOfkaVZmP0E3z7taPyKTouechZUWL7pIdyoDT2MXXYDwjMtEPQ7DUrYXbBiIvIBDvXs8/6m7A==
3190+
3191+
version "1.0.7"
3192+
resolved "https://registry.yarnpkg.com/markdownlint-rule-search-replace/-/markdownlint-rule-search-replace-1.0.7.tgz#b24158cb0833e2459e9faeeb7ffacc1678b3bc3d"
3193+
integrity sha512-foM5zi0i2AZj/ccNbDfMvJnxN9bhWLkLEYOy9QartWDJF2FqgIiahc6dGrekE04H9NHkJHU94ai48hQQKxodMg==
31943194
dependencies:
31953195
markdownlint-rule-helpers "~0.17.2"
31963196

0 commit comments

Comments
 (0)