Skip to content

Commit e583f87

Browse files
committed
upate
1 parent 4f84625 commit e583f87

File tree

1 file changed

+12
-6
lines changed
  • challenges/ecosystem

1 file changed

+12
-6
lines changed

challenges/ecosystem/02.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ Now you can run the `lint` script to teel if you have errors
7676

7777
```console
7878
npm run lint
79-
# or `yarn lint`
79+
# or
80+
yarn lint
8081
```
8182

8283
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:
8788

8889
```console
8990
npm run lint -- --fix
90-
# same as `yarn lint --fix`
91+
# or
92+
yarn lint --fix
9193
```
9294

9395
- [ ] Run `--fix` to automatically fix your errors.
@@ -101,7 +103,8 @@ npm run lint -- --fix
101103

102104
```console
103105
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
105108
```
106109

107110
- [ ] 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
126129

127130
```console
128131
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
130134
```
131135

132136
- [ ] Update your `.eslintrc.js` file to add the following rules:
@@ -184,7 +188,8 @@ We want to add some rules to our ESLint configuration.
184188

185189
```console
186190
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
188193
```
189194

190195
- [ ] 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
210215

211216
```console
212217
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
214220
```
215221

216222
- [ ] Update your `.eslintrc.js` file to add the following import rules:

0 commit comments

Comments
 (0)