You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[eslint config] [*] [docs] Added subshell to usage commands and converted samples to the three backtick markdown syntax with language specifier for highlighting.
Copy file name to clipboardExpand all lines: packages/eslint-config-airbnb-base/README.md
+30-4Lines changed: 30 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,41 @@ We export two ESLint configurations for your usage.
12
12
13
13
Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires `eslint` and `eslint-plugin-import`.
14
14
15
-
1.`PKG=eslint-config-airbnb-base npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"` (which produces and runs a command like `npm install --save-dev eslint-config-airbnb-base eslint@^3.0.1 eslint-plugin-import@^1.10.3` but with whatever the proper version numbers are)
16
-
2. add `"extends": "airbnb-base"` to your .eslintrc
15
+
1. Ensure packages are installed with correct version numbers by running:
16
+
```sh
17
+
(
18
+
export PKG=eslint-config-airbnb-base;
19
+
npm info "$PKG" peerDependencies --json |command sed 's/[\{\},]//g ; s/: /@/g'| xargs npm install --save-dev "$PKG"
2. Add `"extends": "airbnb-base"` to your .eslintrc
17
30
18
31
### eslint-config-airbnb-base/legacy
19
32
20
33
Lints ES5 and below. Requires `eslint` and `eslint-plugin-import`.
21
34
22
-
1.`PKG=eslint-config-airbnb-base npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"` (which produces and runs a command like `npm install --save-dev eslint-config-airbnb-base eslint@^3.0.1 eslint-plugin-import@^1.10.3` but with whatever the proper version numbers are)
23
-
2. add `"extends": "airbnb-base/legacy"` to your .eslintrc
35
+
1. Ensure packages are installed with correct version numbers by running:
36
+
```sh
37
+
(
38
+
export PKG=eslint-config-airbnb-base;
39
+
npm info "$PKG" peerDependencies --json |command sed 's/[\{\},]//g ; s/: /@/g'| xargs npm install --save-dev "$PKG"
2. Add `"extends": "airbnb-base/legacy"` to your .eslintrc
24
50
25
51
See [Airbnb's overarching ESLint config](https://npmjs.com/eslint-config-airbnb), [Airbnb's Javascript styleguide](https://github.com/airbnb/javascript), and the [ESlint config docs](http://eslint.org/docs/user-guide/configuring#extending-configuration-files) for more information.
Copy file name to clipboardExpand all lines: packages/eslint-config-airbnb/README.md
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,21 @@ We export three ESLint configurations for your usage.
12
12
13
13
Our default export contains all of our ESLint rules, including ECMAScript 6+ and React. It requires `eslint`, `eslint-plugin-import`, `eslint-plugin-react`, and `eslint-plugin-jsx-a11y`.
14
14
15
-
1.`PKG=eslint-config-airbnb npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG"` (which produces and runs a command like `npm install --save-dev eslint-config-airbnb eslint@^2.9.0 eslint-plugin-jsx-a11y@^1.2.0 eslint-plugin-import@^1.7.0 eslint-plugin-react@^5.0.1` but with whatever the proper version numbers are)
16
-
2. add `"extends": "airbnb"` to your .eslintrc
15
+
1. Ensure packages are installed with correct version numbers by running:
16
+
```sh
17
+
(
18
+
export PKG=eslint-config-airbnb;
19
+
npm info "$PKG" peerDependencies --json |command sed 's/[\{\},]//g ; s/: /@/g'| xargs npm install --save-dev "$PKG"
0 commit comments