From 98c0f0556fdf68f669d95b748f572cfd743348c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Wed, 23 Mar 2022 17:25:45 +0800 Subject: [PATCH] [Docs] remove global install in readme as said in the docs, In eslint v6+, users have to install the plugins locally. refs: https://eslint.org/docs/user-guide/migrating-to-6.0.0#-plugins-and-shareable-configs-are-no-longer-affected-by-eslints-location --- CHANGELOG.md | 2 ++ README.md | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5119b02ce..f8cf89d9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange - [readme] note use of typescript in readme `import/extensions` section ([#2440], thanks [@OutdatedVersion]) - [Docs] `order`: use correct default value ([#2392], thanks [@hyperupcall]) - [meta] replace git.io link in comments with the original URL ([#2444], thanks [@liby]) +- [Docs] remove global install in readme ([#2412], thanks [@aladdin-add]) ## [2.26.0] - 2022-04-05 @@ -1289,6 +1290,7 @@ for info on changes for earlier releases. [#164]: https://github.com/import-js/eslint-plugin-import/pull/164 [#157]: https://github.com/import-js/eslint-plugin-import/pull/157 [#2444]: https://github.com/import-js/eslint-plugin-import/issues/2444 +[#2412]: https://github.com/import-js/eslint-plugin-import/issues/2412 [#2392]: https://github.com/import-js/eslint-plugin-import/issues/2392 [#2340]: https://github.com/import-js/eslint-plugin-import/issues/2340 [#2255]: https://github.com/import-js/eslint-plugin-import/issues/2255 diff --git a/README.md b/README.md index 8d38874b1..6682d5c91 100644 --- a/README.md +++ b/README.md @@ -123,12 +123,6 @@ The maintainers of `eslint-plugin-import` and thousands of other packages are wo ## Installation -```sh -npm install eslint-plugin-import -g -``` - -or if you manage ESLint as a dev dependency: - ```sh # inside your project's working tree npm install eslint-plugin-import --save-dev