Skip to content

Commit

Permalink
Add a lint rule for e-mail (#23146)
Browse files Browse the repository at this point in the history
* Add a generic bad-spelling rule

* Apply suggestions from code review

Co-authored-by: Schalk Neethling <schalk.neethling@mechanical-ink.co.za>

---------

Co-authored-by: Schalk Neethling <schalk.neethling@mechanical-ink.co.za>
  • Loading branch information
OnkarRuikar and Schalk Neethling authored Feb 20, 2023
1 parent 086ce11 commit e4e5a6f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@
"search": "](https://developer.mozilla.org/",
"replace": "](/",
"skipCode": true
},
{
"name": "incorrect-spelling",
"message": "Incorrect spelling",
"searchPattern": ["/e-mail/ig"],
"replace": ["email"],
"skipCode": false
}
]
}
Expand Down

0 comments on commit e4e5a6f

Please sign in to comment.