Parcourir la source

Test prettier

Janic Duplessis il y a 5 ans
Parent
révision
eae2155e71
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3
    2
      package.json

+ 3
- 2
package.json Voir le fichier

@@ -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",