diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..08c0de2 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "jsxSingleQuote": true, + "singleQuote": true, + "trailingComma": "es5", + "jsxBracketSameLine": true, + "parser": "babel" +} \ No newline at end of file diff --git a/package.json b/package.json index 08f189f..c27e03b 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "private": false, "devDependencies": { "@babel/core": "^7.2.2", + "@babel/parser": "^7.3.2", "@babel/polyfill": "^7.2.5", "@babel/preset-env": "^7.2.3", "@babel/preset-react": "^7.0.0", @@ -29,6 +30,7 @@ "mocha": "^5.2.0", "node-sass": "^4.11.0", "npm-run-all": "^4.1.5", + "prettier": "^1.16.4", "sass-loader": "^7.1.0", "style-loader": "^0.23.1", "webpack": "^4.28.2", diff --git a/yarn.lock b/yarn.lock index 7533ebb..1803456 100644 --- a/yarn.lock +++ b/yarn.lock @@ -221,7 +221,7 @@ esutils "^2.0.2" js-tokens "^4.0.0" -"@babel/parser@^7.2.2", "@babel/parser@^7.2.3": +"@babel/parser@^7.2.2", "@babel/parser@^7.2.3", "@babel/parser@^7.3.2": version "7.3.2" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.3.2.tgz#95cdeddfc3992a6ca2a1315191c1679ca32c55cd" integrity sha512-QzNUC2RO1gadg+fs21fi0Uu0OuGNzRKEmgCxoLNzbCdoprLwjfmZwzUrpUNfJPaVRwBpDY47A17yYEGWyRelnQ== @@ -4579,6 +4579,11 @@ postcss@^7.0.5, postcss@^7.0.6: source-map "^0.6.1" supports-color "^6.1.0" +prettier@^1.16.4: + version "1.16.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717" + integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g== + pretty-bytes@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-1.0.4.tgz#0a22e8210609ad35542f8c8d5d2159aff0751c84"