Skip to content

Commit f770853

Browse files
committed
ecosystem update
1 parent 7508190 commit f770853

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

challenges/ecosystem/02.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Prettier is an opinionated code formatter. It enforces a consistent style by par
4242

4343
![Prettier format on save preview on VS Code](https://raw.githubusercontent.com/flexbox/react-native-workshop/main/challenges/ecosystem/format-on-save.png)
4444

45-
### Setup ESLint
45+
### Setup ESLint
4646

4747
- [ ] Setup ESLint in your project with the following command:
4848

@@ -273,14 +273,6 @@ In our case `cargo_capacity`, `cost_in_credits` are not using `camelCase` and we
273273

274274
## 👽 Bonus
275275

276-
### Avoid data layer issues
277-
278-
- [ ] Install [TanStack Query ESLint plugin](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query).
279-
- [ ] Install [Perfecionist](https://perfectionist.dev/) to enforce a consistent code style across your codebase.
280-
- [ ] Install [eslint-plugin-testing-library](https://callstack.github.io/react-native-testing-library/docs/start/quick-start#eslint-plugin)
281-
282-
Your `.eslintrc.js` file should look like [this](https://raw.githubusercontent.com/flexbox/react-native-bootcamp/main/hackathon/spacecraft/.eslintrc.js)
283-
284276
### Share your settings with your team
285277

286278
You can share your VSCode settings with your team by adding a `.vscode` folder at the root of your project with the following content.
@@ -300,3 +292,9 @@ This will make sure everyone in your team is using the same settings.
300292
- [ ] create a `.vscode` folder.
301293
- [ ] create a `settings.json` file.
302294
- [ ] Add the content above.
295+
296+
### Avoid data layer issues
297+
298+
- [ ] Install [TanStack Query ESLint plugin](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query).
299+
300+
Your `.eslintrc.js` file should look like [this](https://raw.githubusercontent.com/flexbox/react-native-bootcamp/main/hackathon/spacecraft/.eslintrc.js)

challenges/ecosystem/05.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,10 @@ Now you can run `npm run test:watch` to watch your files and run tests automatic
216216
- https://reactnativetesting.io/
217217
- https://github.com/vanGalilea/react-native-testing?tab=readme-ov-file#covered-examples-
218218

219-
220219
### 👽 Bonus
221220

222-
- [ ] Check the [React Native Testing Library Cookbook](https://callstack.github.io/react-native-testing-library/cookbook/index) and add a new test to your component.
221+
- [ ] Check the [React Native Testing Library Cookbook](https://callstack.github.io/react-native-testing-library/cookbook/index) and add a new test to your component.
222+
223+
### Improve your ESLint setup
224+
225+
- [ ] Install [eslint-plugin-testing-library](https://callstack.github.io/react-native-testing-library/docs/start/quick-start#eslint-plugin)

hackathon/spacecraft/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
"@typescript-eslint/no-explicit-any": "warn", // Detect usage of `any` type
3030
"@typescript-eslint/no-unused-vars": "warn", // Detect unused variables
3131
camelcase: "off", // Disable camelcase rule
32-
"perfectionist/sort-imports": "error", // Perfectionist import sorting
32+
"perfectionist/sort-imports": "error", // Perfectionist import sorting https://perfectionist.dev/guide/introduction
3333
"perfectionist/sort-interfaces": ["error"], // Perfectionist interfaces sorting
3434
"perfectionist/sort-objects": [
3535
"error",

0 commit comments

Comments
 (0)