From f479f6fe2eb95156e22bebfccb39a7fc1f19e9c0 Mon Sep 17 00:00:00 2001 From: Patrick Kilgore Date: Tue, 25 Feb 2020 17:44:39 -0600 Subject: [PATCH] Docs: References correct config file name (#12885) From eslint/website#693 According to the `configuration.md` page, the `.eslintrc` file format has been deprecated, and the `--init` option will generate either a `.yml`, `.js`, or `.json` file depending on what you pick in the initialization wizard. This commit syncs the getting-started instructions with the configuration instructions. --- docs/user-guide/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user-guide/getting-started.md b/docs/user-guide/getting-started.md index 356d3d613e7..8438d50af54 100644 --- a/docs/user-guide/getting-started.md +++ b/docs/user-guide/getting-started.md @@ -38,7 +38,7 @@ It is also possible to install ESLint globally rather than locally (using `npm i **Note:** If you are coming from a version before 1.0.0 please see the [migration guide](migrating-to-1.0.0.md). -After running `eslint --init`, you'll have a `.eslintrc` file in your directory. In it, you'll see some rules configured like this: +After running `eslint --init`, you'll have a `.eslintrc.{js,yml,json}` file in your directory. In it, you'll see some rules configured like this: ```json { @@ -57,7 +57,7 @@ The names `"semi"` and `"quotes"` are the names of [rules](/docs/rules) in ESLin The three error levels allow you fine-grained control over how ESLint applies rules (for more configuration options and details, see the [configuration docs](configuring.md)). -Your `.eslintrc` configuration file will also include the line: +Your `.eslintrc.{js,yml,json}` configuration file will also include the line: ```json {