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
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,25 @@ For validating **React** project use `react` version (`htmlacademy/react` includ
52
52
}
53
53
```
54
54
55
-
Caution! `htmlacademy/react` doesn't include `react-hooks/rules-of-hooks` and `react-hooks/exhaustive-deps` because in our courses we use CRA (Create React App) which includes these plugins out of box. Install them yourself if necessary.
55
+
For validating **React** project with TypeScript use `react-typescript` version (`htmlacademy/react-typescript` includes `react/recommended` and `@typescript-eslint/recommended`):
56
+
57
+
```json
58
+
{
59
+
"parserOptions": {
60
+
"ecmaVersion": 2018,
61
+
"sourceType": "module"
62
+
},
63
+
"env": {
64
+
"es2017": true,
65
+
"browser": true
66
+
},
67
+
"extends": "htmlacademy/react-typescript",
68
+
"rules": {
69
+
// Additional rules...
70
+
}
71
+
}
72
+
```
73
+
74
+
Caution! `htmlacademy/react` and `htmlacademy/react-typescript` doesn't include `react-hooks/rules-of-hooks` and `react-hooks/exhaustive-deps` because in our courses we use CRA (Create React App) which includes these plugins out of box. Install them yourself if necessary.
0 commit comments