Skip to content

Commit

Permalink
chore: add commitlint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Nov 22, 2022
1 parent 2c0c5c8 commit dc082ac
Show file tree
Hide file tree
Showing 7 changed files with 1,101 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx pretty-quick --staged
7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,21 @@
"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",
"@types/react-dom": "18.0.6",
"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",
Expand Down
Loading

1 comment on commit dc082ac

@vercel
Copy link

@vercel vercel bot commented on dc082ac Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

taxonomy – ./

tx.shadcn.com
taxonomyapp.vercel.app
taxonomy-shadcn.vercel.app
taxonomy-git-main-shadcn.vercel.app

Please sign in to comment.