Skip to content

Commit 64ba39a

Browse files
committed
fix: πŸ› update eslint config
βœ… Closes: #230
1 parent 2457366 commit 64ba39a

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

β€Žchallenges/ecosystem/02.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,24 @@ npm install --dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/par
5151
# same as `yarn add --dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser`
5252
```
5353

54-
- [ ] Create a `.eslintrc.js` file at the root of your project with the following content: (you can use `touch .eslintrc.js` from the terminal).
54+
- [ ] Run `npx expo lint` to create a `.eslintrc.js` file at the root of your project.
55+
56+
```console
57+
npx expo lint
58+
```
59+
60+
- [ ] Update your `.eslintrc.js` file to add the following rules:
5561

5662
```javascript
5763
// .eslintrc.js
58-
5964
module.exports = {
60-
env: {
61-
node: true
65+
extends: ["expo", "react-native-wcandillon"],
66+
plugins: ["@tanstack/query"],
67+
requireConfigFile: false,
68+
rules: {
69+
camelcase: "off",
70+
"import/no-anonymous-default-export": [1, { allowArray: true }],
6271
},
63-
parser: "@typescript-eslint/parser",
64-
root: true,
65-
extends: [
66-
"eslint:recommended",
67-
"plugin:@typescript-eslint/recommended",
68-
],
6972
};
7073
```
7174

β€Žhackathon/spacecraft/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
extends: ["expo", "react-native-wcandillon"],
33
plugins: ["@tanstack/query"],
4+
requireConfigFile: false,
45
rules: {
56
camelcase: "off",
67
"import/no-anonymous-default-export": [1, { allowArray: true }],

0 commit comments

Comments
Β (0)