Skip to content

Commit 26216a8

Browse files
committed
feat: add prettier
1 parent 7ca6e25 commit 26216a8

File tree

5 files changed

+109
-2
lines changed

5 files changed

+109
-2
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root
2+
3+
[*]
4+
charset = utf-8
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
end_of_line = lf
8+
indent_style = space
9+
max_line_length = 80
10+
11+
[*.{tsx,ts,js,jsx,json,html,css}]
12+
indent_size = 2
13+
14+
[*.rs]
15+
indent_size = 4

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.github/
2+
3+
*.md
4+
pnpm-lock.yaml

.prettierrc.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
trailingComma = "es5"
2+
tabWidth = 2
3+
semi = true
4+
singleQuote = false
5+
arrowParens = "avoid"
6+
7+
plugins = ["prettier-plugin-tailwindcss"]

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,13 @@
33
"private": true,
44
"workspaces": [
55
"js/react"
6-
]
6+
],
7+
"scripts": {
8+
"fmt": "npx prettier --write .",
9+
"fmt:check": "npx prettier --check ."
10+
},
11+
"devDependencies": {
12+
"prettier": "3.5.3",
13+
"prettier-plugin-tailwindcss": "0.6.12"
14+
}
715
}

pnpm-lock.yaml

Lines changed: 74 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)