From 600a61e8e3cbbbd24509d7aeac217f8ec8d8342a Mon Sep 17 00:00:00 2001 From: Ramon Chancay Date: Sat, 13 Oct 2018 13:49:39 -0500 Subject: [PATCH] agregando prettier --- package-lock.json | 6 ++++++ package.json | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index d8abb9f..011f41d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4631,6 +4631,12 @@ "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", "dev": true }, + "prettier": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.3.tgz", + "integrity": "sha512-qZDVnCrnpsRJJq5nSsiHCE3BYMED2OtsI+cmzIzF1QIfqm5ALf8tEJcO27zV1gKNKRPdhjO0dNWnrzssDQ1tFg==", + "dev": true + }, "pretty-format": { "version": "23.6.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-23.6.0.tgz", diff --git a/package.json b/package.json index 52cefdc..59b3bc0 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "jest", "test:watch": "jest --watchAll", - "precommit": "npm run test" + "precommit": "npm run format && npm run test", + "format": "prettier --write 'src/**/*.js'" }, "repository": { "type": "git", @@ -26,6 +27,7 @@ "babel-preset-env": "^1.7.0", "husky": "^1.1.2", "jest": "^23.6.0", + "prettier": "^1.14.3", "regenerator-runtime": "^0.12.1" } }