Bladeren bron

Test prettier

Janic Duplessis 5 jaren geleden
bovenliggende
commit
eae2155e71
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. 3
    2
      package.json

+ 3
- 2
package.json Bestand weergeven

@@ -15,9 +15,10 @@
15 15
   "license": "MIT",
16 16
   "scripts": {
17 17
     "start": "react-native start",
18
-    "test": "yarn validate:eslint && yarn validate:typescript",
18
+    "test": "yarn validate:prettier && yarn validate:eslint && yarn validate:typescript",
19 19
     "validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
20
-    "validate:typescript": "tsc --project ./ --noEmit"
20
+    "validate:typescript": "tsc --project ./ --noEmit",
21
+    "validate:prettier": "prettier \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\" --check"
21 22
   },
22 23
   "keywords": [
23 24
     "react-native",