Skip to content

Commit c7dc2b4

Browse files
authored
Update README.md
1 parent 21d9d08 commit c7dc2b4

File tree

1 file changed

+8
-53
lines changed

1 file changed

+8
-53
lines changed

README.md

+8-53
Original file line numberDiff line numberDiff line change
@@ -12,70 +12,25 @@ We export two ESLint configurations for your usage.
1212

1313
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires `eslint` and `eslint-plugin-import`.
1414

15-
If you use yarn, run `npm info "eslint-config-netzkern-base@latest" peerDependencies` to list the peer dependencies and versions, then run `yarn add --dev <dependency>@<version>` for each listed peer dependency. See below for npm instructions.
16-
1715
1. Install the correct versions of each package, which are listed by the command:
1816

19-
```sh
20-
npm info "eslint-config-netzkern-base@latest" peerDependencies
21-
```
22-
23-
Linux/OSX users can run
24-
```sh
25-
(
26-
export PKG=eslint-config-netzkern-base;
27-
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
28-
)
29-
```
30-
31-
Which produces and runs a command like:
32-
33-
```sh
34-
npm install --save-dev eslint-config-netzkern-base eslint@^#.#.# eslint-plugin-import@^#.#.#
35-
```
36-
37-
Windows users can either install all the peer dependencies manually, or use the [install-peerdeps](https://github.com/nathanhleung/install-peerdeps) cli tool.
38-
39-
```sh
40-
npm install -g install-peerdeps
41-
install-peerdeps --dev eslint-config-netzkern-base
42-
```
43-
44-
The cli will produce and run a command like:
45-
46-
```sh
47-
npm install --save-dev eslint-config-netzkern-base eslint@^#.#.# eslint-plugin-import@^#.#.#
48-
```
17+
```sh
18+
npm install --save-dev eslint-config-netzkern-base eslint eslint-plugin-import
19+
```
4920

5021
2. Add `"extends": "netzkern-base"` to your .eslintrc.
5122

5223
### eslint-config-netzkern-base/legacy
5324

54-
Lints ES5 and below. Requires `eslint` and `eslint-plugin-import`.
25+
Lints ES5 and below. Requires `eslint`.
5526

5627
1. Install the correct versions of each package, which are listed by the command:
5728

58-
```sh
59-
npm info "eslint-config-netzkern-base@latest" peerDependencies
60-
```
61-
62-
Linux/OSX users can run
63-
```sh
64-
(
65-
export PKG=eslint-config-netzkern-base;
66-
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"
67-
)
68-
```
69-
70-
Which produces and runs a command like:
71-
72-
```sh
73-
npm install --save-dev eslint-config-netzkern-base eslint@^3.0.1 eslint-plugin-import@^1.10.3
74-
```
75-
76-
2. Add `"extends": "netzkern-base/legacy"` to your .eslintrc
29+
```sh
30+
npm install --save-dev eslint-config-netzkern-base eslint
31+
```
7732

78-
See [ESlint config docs](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information.
33+
2. Add `"extends": "netzkern-base/legacy"` to your .eslintrc.
7934

8035
## Targeting Environments
8136

0 commit comments

Comments
 (0)