chore: add commitlint and prettier

This commit is contained in:
shadcn 2022-11-22 12:55:03 +04:00
parent 2c0c5c8a8c
commit dc082ac899
7 changed files with 1101 additions and 16 deletions

3
.commitlintrc.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}

10
.editorconfig Normal file
View 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
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx commitlint --edit $1

4
.husky/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx pretty-quick --staged

7
.prettierrc.json Normal file
View file

@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}

View file

@ -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",

1085
yarn.lock

File diff suppressed because it is too large Load diff