From 4cb8c5a78730084eac8740082e08275a2f9a314a Mon Sep 17 00:00:00 2001 From: Sylvain STEPHANT Date: Thu, 21 Feb 2019 16:57:49 +0100 Subject: [PATCH] Documentation update for #3753 --- docs/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/index.md b/docs/index.md index d746a1bdb2..517c3a95b9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1628,6 +1628,7 @@ In addition to supporting the legacy [`mocha.opts`](#mochaopts) run-control form - **JavaScript**: Create a `.mocharc.js` in your project's root directory, and export an object (`module.exports = {/* ... */}`) containing your configuration. - **YAML**: Create a `.mocharc.yaml` (or `.mocharc.yml`) in your project's root directory. - **JSON**: Create a `.mocharc.json` in your project's root directory. Comments — while not valid JSON — are allowed in this file, and will be ignored by Mocha. +- **[JSON5](https://json5.org/)**: Create a `.mocharc.jsonc` (or `.mocharc.json5`) in your project's root directory. - **`package.json`**: Create a `mocha` property in your project's `package.json`. Mocha suggests using one of the above strategies for configuration instead of the legacy `mocha.opts` format. @@ -1649,6 +1650,8 @@ If no custom path was given, and if there are multiple configuration files in th 1. `.mocharc.js` 1. `.mocharc.yaml` 1. `.mocharc.yml` +1. `.mocharc.jsonc` +1. `.mocharc.json5` 1. `.mocharc.json` ### Merging