Explorar el Código

Test prettier

Janic Duplessis hace 4 años
padre
commit
eae2155e71
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      package.json

+ 3
- 2
package.json Ver fichero

15
   "license": "MIT",
15
   "license": "MIT",
16
   "scripts": {
16
   "scripts": {
17
     "start": "react-native start",
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
     "validate:eslint": "eslint \"src/**/*.{js,ts,tsx}\" \"example/**/*.{js,ts,tsx}\"",
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
   "keywords": [
23
   "keywords": [
23
     "react-native",
24
     "react-native",