mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 01:38:28 +00:00
chore: add commitlint and prettier
This commit is contained in:
parent
2c0c5c8a8c
commit
dc082ac899
7 changed files with 1101 additions and 16 deletions
3
.commitlintrc.json
Normal file
3
.commitlintrc.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": ["@commitlint/config-conventional"]
|
||||
}
|
||||
10
.editorconfig
Normal file
10
.editorconfig
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# editorconfig.org
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 2
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx commitlint --edit $1
|
||||
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx pretty-quick --staged
|
||||
7
.prettierrc.json
Normal file
7
.prettierrc.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"endOfLine": "lf",
|
||||
"semi": false,
|
||||
"singleQuote": false,
|
||||
"tabWidth": 2,
|
||||
"trailingComma": "es5"
|
||||
}
|
||||
|
|
@ -60,6 +60,8 @@
|
|||
"zod": "^3.19.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.3.0",
|
||||
"@commitlint/config-conventional": "^17.3.0",
|
||||
"@tailwindcss/typography": "^0.5.7",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/react": "18.0.15",
|
||||
|
|
@ -67,10 +69,12 @@
|
|||
"autoprefixer": "^10.4.8",
|
||||
"eslint": "8.21.0",
|
||||
"eslint-config-next": "^13.0.0",
|
||||
"husky": "^8.0.2",
|
||||
"mdast-util-toc": "^6.1.0",
|
||||
"postcss": "^8.4.14",
|
||||
"prettier": "^2.7.1",
|
||||
"prettier-plugin-tailwindcss": "^0.1.13",
|
||||
"pretty-quick": "^3.1.3",
|
||||
"prisma": "^4.5.0",
|
||||
"rehype": "^12.0.1",
|
||||
"rehype-autolink-headings": "^6.1.1",
|
||||
|
|
|
|||
Loading…
Reference in a new issue