File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ on : [pull_request]
2+
3+ jobs :
4+ lint :
5+ runs-on : ubuntu-latest
6+ steps :
7+ - uses : actions/checkout@v3
8+ - uses : DavidAnson/markdownlint-cli2-action@v11
9+ with :
10+ globs : |
11+ *.md
12+ !test/*.md
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ yarn add -D prettier eslint-config-prettier eslint-plugin-prettier
7171- [ ] Update your ` eslintrc.js ` file to add the following rules:
7272
7373``` javascript
74+ // .eslintrc.js
75+
7476module .exports = {
7577 extends: [" expo" , " prettier" ],
7678 plugins: [" prettier" ],
@@ -85,8 +87,11 @@ module.exports = {
8587- [ ] Update your scripts on ` package.json ` to check errors.
8688
8789``` json
90+ <<<<<<< Updated upstream
8891// package.json
8992
93+ =======
94+ >>>>>>> Stashed changes
9095 "scripts" : {
9196 ...
9297 "lint" : " eslint --ignore-path .gitignore --ext .js,.ts,.tsx ." ,
@@ -244,8 +249,28 @@ yarn add -D eslint-plugin-simple-import-sort
244249 [" ^\\ ./(?=.*/)(?!/?$)" , " ^\\ .(?!/?$)" , " ^\\ ./?$" ],
245250 ]
246251 }
252+ <<<<<<< Updated upstream
247253 ],
248254 },
255+ =======
256+ ]
257+ }
258+ };
259+ ```
260+
261+ - Create a ` .prettierrc ` file at the root of your project with the following content:
262+
263+ ``` json
264+ // .prettierrc
265+
266+ {
267+ "$schema" : " http://json.schemastore.org/prettierrc" ,
268+ "semi" : true ,
269+ "singleAttributePerLine" : true ,
270+ "trailingComma" : " none" ,
271+ "tabWidth" : 2 ,
272+ "singleQuote" : false
273+ >>>>>>> Stashed changes
249274}
250275```
251276
You can’t perform that action at this time.
0 commit comments