Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 09336da

Browse files
committed
added prettier config and script
1 parent 88aadb1 commit 09336da

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": false,
4+
"jsxBracketSameLine": true,
5+
"printWidth": 80,
6+
"proseWrap": "never",
7+
"singleQuote": true,
8+
"trailingComma": "all"
9+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"dev-push": "lerna run build && lerna run dev-push",
2323
"package-install": "lerna exec yarn install",
2424
"version-bump": "changeset",
25-
"release": "lerna run release && changeset publish"
25+
"release": "lerna run release && changeset publish",
26+
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\""
2627
},
2728
"repository": {
2829
"type": "git",

0 commit comments

Comments
 (0)