File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -51,21 +51,24 @@ npm install --dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/par
51
51
# same as ` yarn add --dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser`
52
52
```
53
53
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:
55
61
56
62
``` javascript
57
63
// .eslintrc.js
58
-
59
64
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 }],
62
71
},
63
- parser: " @typescript-eslint/parser" ,
64
- root: true ,
65
- extends: [
66
- " eslint:recommended" ,
67
- " plugin:@typescript-eslint/recommended" ,
68
- ],
69
72
};
70
73
```
71
74
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
extends : [ "expo" , "react-native-wcandillon" ] ,
3
3
plugins : [ "@tanstack/query" ] ,
4
+ requireConfigFile : false ,
4
5
rules : {
5
6
camelcase : "off" ,
6
7
"import/no-anonymous-default-export" : [ 1 , { allowArray : true } ] ,
You canβt perform that action at this time.
0 commit comments