From 6e0e4073e9565d4e3d65fe70ffc3b557e44a6a71 Mon Sep 17 00:00:00 2001 From: "weiran.zsd" Date: Wed, 24 Jul 2019 13:04:43 +0800 Subject: [PATCH] Docs: do not recommend global-installed usage --- README.md | 2 -- docs/user-guide/getting-started.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 18d15249fe4..2f2c30b9f84 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,6 @@ After that, you can run ESLint on any file or directory like this: $ ./node_modules/.bin/eslint yourfile.js ``` -It is also possible to install ESLint globally rather than locally (using `npm install eslint --global`). However, any plugins or shareable configs that you use must be installed locally in either case. - ## Configuration After running `eslint --init`, you'll have a `.eslintrc` file in your directory. In it, you'll see some rules configured like this: diff --git a/docs/user-guide/getting-started.md b/docs/user-guide/getting-started.md index 45633f61850..1bebf7d6968 100644 --- a/docs/user-guide/getting-started.md +++ b/docs/user-guide/getting-started.md @@ -33,7 +33,7 @@ After that, you can run ESLint on any file or directory like this: $ ./node_modules/.bin/eslint yourfile.js ``` -It is also possible to install ESLint globally rather than locally (using `npm install eslint --global`). However, any plugins or shareable configs that you use must be installed locally in either case. +It is also possible to install ESLint globally rather than locally (using `npm install eslint --global`). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case. ## Configuration