aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package-lock.json6
-rw-r--r--package.json8
2 files changed, 11 insertions, 3 deletions
diff --git a/package-lock.json b/package-lock.json
index aa80848..bf23a17 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13899,6 +13899,12 @@
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ="
},
+ "prettier": {
+ "version": "1.18.2",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz",
+ "integrity": "sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==",
+ "dev": true
+ },
"pretty-bytes": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.3.0.tgz",
diff --git a/package.json b/package.json
index 4e19b00..a652b65 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,8 @@
},
"scripts": {
"dev": "parcel src/index.html",
- "build": "parcel build src/index.html"
+ "build": "parcel build src/index.html",
+ "format": "prettier \"src/**/*.{js,css,html}\" --write"
},
"eslintConfig": {
"extends": "react-app"
@@ -38,6 +39,7 @@
]
},
"devDependencies": {
- "parcel-bundler": "^1.12.3"
+ "parcel-bundler": "^1.12.3",
+ "prettier": "^1.18.2"
}
-}
+} \ No newline at end of file