From 196713a85e8cd6c7251a6c16ff48f5a3dd0bf0d5 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Fri, 14 Jul 2023 09:43:34 -0700 Subject: [PATCH] Enable linting rules to prevent smart quotes --- .markdownlint-cli2.jsonc | 29 ++++++++++++++--------------- README.md | 4 ++-- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc index aaffae2c888017..aeab113a974966 100644 --- a/.markdownlint-cli2.jsonc +++ b/.markdownlint-cli2.jsonc @@ -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", diff --git a/README.md b/README.md index 087f887fde0732..48849a924d2d55 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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_ repo’s `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