Skip to content

Commit f295c45

Browse files
committed
Adding prettier
1 parent 27269ec commit f295c45

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.prettierignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
build/
2+
coverage/
3+
dist/
4+
docs/
5+
node_modules/
6+
*.md
7+
.prettierignore
8+
yarn.lock
9+
.idea
10+
LICENSE
11+
*.jpg
12+
.DS_Store
13+
.npmignore
14+
.gitignore

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"build:light": "babel ./src --out-dir ./dist",
2929
"build:examples": "cross-env NODE_ENV=production webpack --mode production --config webpack/examples.cfg.js",
3030
"clean": "rimraf dist build",
31+
"format": "prettier --write \"./**\"",
3132
"lint": "eslint ./src",
3233
"lint:fix": "eslint --fix ./src",
3334
"precommit": "lint-staged",
@@ -118,6 +119,7 @@
118119
"open": "0.0.5",
119120
"open-browser-webpack-plugin": "0.0.5",
120121
"postcss-loader": "^3.0.0",
122+
"prettier": "^2.2.1",
121123
"react-color": "^2.14.1",
122124
"react-dropzone": "7.0.1",
123125
"react-hot-loader": "4.6.0",

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -7282,6 +7282,11 @@ preserve@^0.2.0:
72827282
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
72837283
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
72847284

7285+
prettier@^2.2.1:
7286+
version "2.2.1"
7287+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.1.tgz#795a1a78dd52f073da0cd42b21f9c91381923ff5"
7288+
integrity sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==
7289+
72857290
pretty-error@^2.0.2:
72867291
version "2.1.1"
72877292
resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3"

0 commit comments

Comments
 (0)