Skip to content

Commit 02c20c0

Browse files
committed
chore: Add Prettier config
1 parent 4df9f6f commit 02c20c0

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.md

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"arrowParens": "avoid",
3+
"printWidth": 120,
4+
"proseWrap": "always",
5+
"singleQuote": true,
6+
"trailingComma": "all"
7+
}

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"jsdom-worker": "^0.2.1",
6767
"npm-run-all": "^4.1.5",
6868
"pako": "^2.0.4",
69-
"prettier": "^2.5.1",
69+
"prettier": "2.7.1",
7070
"rimraf": "^3.0.2",
7171
"rollup": "^2.70.0",
7272
"rollup-plugin-terser": "^7.0.2",
@@ -83,9 +83,6 @@
8383
"lodash.debounce": "^4.0.8",
8484
"rrweb": "^1.1.3"
8585
},
86-
"prettier": {
87-
"singleQuote": true
88-
},
8986
"size-limit": [
9087
{
9188
"path": "build/npm/index.js",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,7 +3429,7 @@ prettier-linter-helpers@^1.0.0:
34293429
dependencies:
34303430
fast-diff "^1.1.2"
34313431

3432-
prettier@^2.5.1:
3432+
prettier@2.7.1:
34333433
version "2.7.1"
34343434
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64"
34353435
integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==

0 commit comments

Comments
 (0)