From c7d08afbc764a6eaa36b51e1360c8aef1dd83f32 Mon Sep 17 00:00:00 2001 From: Joel Brandt Date: Sun, 26 Jun 2022 08:19:26 -0700 Subject: [PATCH 1/2] [doc] update eslint-patch README with v8 support Updates the eslint-patch README to note that ESLint version 8 is supported. Also fixes an error in the URL for the CHANGELOG. --- .../eslint-patch/patch-1_2022-06-27-22-55.json | 10 ++++++++++ eslint/eslint-patch/README.md | 7 +++---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json diff --git a/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json b/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json new file mode 100644 index 00000000000..bc1e304127d --- /dev/null +++ b/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@rushstack/eslint-patch", + "comment": "[doc] update eslint-patch README with v8 support", + "type": "none" + } + ], + "packageName": "@rushstack/eslint-patch" +} \ No newline at end of file diff --git a/eslint/eslint-patch/README.md b/eslint/eslint-patch/README.md index a6cb69478e8..623b88bff01 100644 --- a/eslint/eslint-patch/README.md +++ b/eslint/eslint-patch/README.md @@ -22,7 +22,7 @@ for additional technical background. ## Why it's a patch -ESLint's long awaited module resolver overhaul still has not materialized as of ESLint 7. As a stopgap, +ESLint's long awaited module resolver overhaul still has not materialized as of ESLint 8. As a stopgap, we created a small **.eslintrc.js** patch that solves the problem adequately for most real world scenarios. This patch was proposed as an ESLint feature with [PR 12460](https://github.com/eslint/eslint/pull/12460), however the maintainers were not able to accept it unless it is reworked into a fully correct design. Such a requirement @@ -52,7 +52,7 @@ Instead, the hypothetical `@your-company/eslint-config` NPM package would declar own dependencies. This patch works by modifying the ESLint engine so that its module resolver will load relative to the folder of -the referencing config file, rather than the project folder. The patch is compatible with ESLint 6 and 7. +the referencing config file, rather than the project folder. The patch is compatible with ESLint 6, 7, and 8. It also works with any editor extensions that load ESLint as a library. For an even leaner setup, `@your-company/eslint-config` can provide the patch as its own dependency. See @@ -62,8 +62,7 @@ and recommended approach. ## Links -- [CHANGELOG.md]( - https://github.com/microsoft/rushstack/blob/main/stack/eslint-patch/CHANGELOG.md) - Find +- [CHANGELOG.md](https://github.com/microsoft/rushstack/blob/main/eslint/eslint-patch/CHANGELOG.md) - Find out what's new in the latest version `@rushstack/eslint-patch` is part of the [Rush Stack](https://rushstack.io/) family of projects. From a209d76b52b88a938ee279a66be9b685a4dcfd74 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Mon, 27 Jun 2022 16:21:39 -0700 Subject: [PATCH 2/2] Rush change. --- .../@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json b/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json index bc1e304127d..972e6c1751a 100644 --- a/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json +++ b/common/changes/@rushstack/eslint-patch/patch-1_2022-06-27-22-55.json @@ -2,8 +2,8 @@ "changes": [ { "packageName": "@rushstack/eslint-patch", - "comment": "[doc] update eslint-patch README with v8 support", - "type": "none" + "comment": "Update the README to mention support for ESLint 8.", + "type": "patch" } ], "packageName": "@rushstack/eslint-patch"