Skip to content

Commit

Permalink
Enable linting rules to prevent smart quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg committed Jul 14, 2023
1 parent 7cdd7f3 commit 196713a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
29 changes: 14 additions & 15 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,20 @@
"MD052": false,
"search-replace": {
"rules": [
// XXX Many instances still found in translated content
// {
// "name": "curly-double-quotes",
// "message": "Don't use curly double quotes",
// "searchPattern": "/“|”/g",
// "replace": "\"",
// "searchScope": "text"
// },
// {
// "name": "curly-single-quotes",
// "message": "Don't use curly single quotes",
// "searchPattern": "/‘|’/g",
// "replace": "'",
// "searchScope": "text"
// },
{
"name": "curly-double-quotes",
"message": "Don't use curly double quotes",
"searchPattern": "/“|”/g",
"replace": "\"",
"searchScope": "text"
},
{
"name": "curly-single-quotes",
"message": "Don't use curly single quotes",
"searchPattern": "/‘|’/g",
"replace": "'",
"searchScope": "text"
},
{
"name": "nbsp",
"message": "Don't use no-break spaces",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to the translated content of MDN Web Docs

:tada: First of all, thanks for taking the time to contribute to [MDN Web Docs](https://developer.mozilla.org) translated content! :tada:
:tada: First of all, thanks for taking the time to contribute to [MDN Web Docs](https://developer.mozilla.org)' translated content! :tada:

The following is a set of guidelines for contributing to the [translated content of MDN Web Docs](https://github.com/mdn/translated-content), which is hosted within the [MDN Organization](https://github.com/mdn) on GitHub.

Expand Down Expand Up @@ -50,7 +50,7 @@ Now you need to fork and clone both the [content repo](https://github.com/mdn/co

2. Run the command `yarn install` to fetch the latest packages and get the local MDN testing environment set up. It is also recommended that you run `yarn install` before every update you do to the source, to make sure you have the latest packages.

3. Next, create an environment variable called `CONTENT_TRANSLATED_ROOT` containing the path to the _translated-content_ repos `files` directory. You could do this for a single session like so:
3. Next, create an environment variable called `CONTENT_TRANSLATED_ROOT` containing the path to the _translated-content_ repo's `files` directory. You could do this for a single session like so:
```bash
export CONTENT_TRANSLATED_ROOT=/path/to/translated-content/files
Expand Down

0 comments on commit 196713a

Please sign in to comment.