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
{{ message }}
This repository was archived by the owner on May 12, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,26 @@ Enhances Airbnb's ESLint config with TypeScript support
10
10
11
11
Make sure you have the regular Airbnb config setup. See [eslint-config-airbnb](https://www.npmjs.com/package/eslint-config-airbnb), or [eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base) if you're not using React.
12
12
13
-
### 2) Install this config (and peer dependencies)
13
+
### 2) Install dependencies
14
14
15
15
```bash
16
16
npm install eslint-config-airbnb-typescript \
17
17
@typescript-eslint/eslint-plugin \
18
18
@typescript-eslint/parser \
19
+
eslint-plugin-import@^2.22.0 \
20
+
eslint-plugin-jsx-a11y@^6.3.1 \
21
+
eslint-plugin-react@^7.20.3 \
22
+
eslint-plugin-react-hooks@^4.0.8 \
23
+
--save-dev
24
+
```
25
+
26
+
If you don't need React support:
27
+
28
+
```bash
29
+
npm install eslint-config-airbnb-typescript \
30
+
@typescript-eslint/eslint-plugin \
31
+
@typescript-eslint/parser \
32
+
eslint-plugin-import@^2.22.0 \
19
33
--save-dev
20
34
```
21
35
@@ -94,7 +108,7 @@ parserOptions: {
94
108
95
109
### Why do I need the peer dependencies?
96
110
97
-
`@typescript-eslint/eslint-plugin` is a peer dependency because of a limitation within ESLint. See [issue](https://github.com/eslint/eslint/issues/3458), [RFC](https://github.com/eslint/rfcs/tree/master/designs/2019-config-simplification), and [progress](https://github.com/eslint/eslint/issues/13481).
111
+
The ESLint plugins are peer dependencies due to a limitation within ESLint. See [issue](https://github.com/eslint/eslint/issues/3458), [RFC](https://github.com/eslint/rfcs/tree/master/designs/2019-config-simplification), and [progress](https://github.com/eslint/eslint/issues/13481).
98
112
99
113
`@typescript-eslint/parser` is a peer dependency because the version number must match `@typescript-eslint/eslint-plugin`.
0 commit comments