You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# or `yarn add --dev prettier eslint-config-prettier eslint-plugin-prettier`
105
+
```
106
+
107
+
-[ ] Update your `eslintrc.js` file to add the following rules:
108
+
109
+
```javascript
110
+
// .eslintrc.js
111
+
112
+
module.exports= {
113
+
extends: ["expo", "prettier"],
114
+
plugins: ["prettier"],
115
+
rules: {
116
+
"prettier/prettier":"warn",
117
+
},
118
+
};
119
+
```
120
+
121
121
### ESLint and prettier rules for React Native
122
122
123
123
We are making progress, but we are not done yet. We need to add rules for React Native. In the meantime, let's install some plugins to format our code with prettier and sort imports automatically.
@@ -162,7 +162,7 @@ module.exports = {
162
162
163
163
- Create a `.prettierrc` file at the root of your project with the following content:
0 commit comments