@@ -76,7 +76,8 @@ Now you can run the `lint` script to teel if you have errors
76
76
77
77
``` console
78
78
npm run lint
79
- # or ` yarn lint`
79
+ # or
80
+ yarn lint
80
81
```
81
82
82
83
Running lint will show you errors in your code, here is an example:
@@ -87,7 +88,8 @@ You don't need to manullay fix your errors. We can run a script for that with:
87
88
88
89
``` console
89
90
npm run lint -- --fix
90
- # same as ` yarn lint --fix`
91
+ # or
92
+ yarn lint --fix
91
93
```
92
94
93
95
- [ ] Run ` --fix ` to automatically fix your errors.
@@ -101,7 +103,8 @@ npm run lint -- --fix
101
103
102
104
``` console
103
105
npm install --save-dev prettier eslint-config-prettier eslint-plugin-prettier
104
- # or ` yarn add --dev prettier eslint-config-prettier eslint-plugin-prettier`
106
+ # or
107
+ yarn add --dev prettier eslint-config-prettier eslint-plugin-prettier
105
108
```
106
109
107
110
- [ ] Update your ` eslintrc.js ` file to add the following rules:
@@ -126,7 +129,8 @@ We are making progress, but we are not done yet. We need to add rules for React
126
129
127
130
``` console
128
131
npm install --dev prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react
129
- # or ` yarn add --dev prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react`
132
+ # or
133
+ yarn add --dev prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react
130
134
```
131
135
132
136
- [ ] Update your ` .eslintrc.js ` file to add the following rules:
@@ -184,7 +188,8 @@ We want to add some rules to our ESLint configuration.
184
188
185
189
``` console
186
190
npm install --dev eslint-plugin-react-native
187
- # or ` yarn add --dev eslint-plugin-react-native`
191
+ # or
192
+ yarn add --dev eslint-plugin-react-native
188
193
```
189
194
190
195
- [ ] Update your ` .eslintrc.js ` file to add the following react-native rules:
@@ -210,7 +215,8 @@ We now want to sort our imports automatically. We can use the `simple-import-sor
210
215
211
216
``` console
212
217
npm install --dev eslint-plugin-simple-import-sort
213
- # or ` yarn add --dev eslint-plugin-simple-import-sort`
218
+ # or
219
+ yarn add --dev eslint-plugin-simple-import-sort
214
220
```
215
221
216
222
- [ ] Update your ` .eslintrc.js ` file to add the following import rules:
0 commit comments