Skip to content

Commit 8432e19

Browse files
Adding prettier
1 parent 37b30ec commit 8432e19

12 files changed

Lines changed: 1050 additions & 62 deletions

File tree

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"]
2+
"extends": ["next/core-web-vitals", "plugin:prettier/recommended"]
33
}

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npx lint-staged

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"semi": true,
6+
"bracketSpacing": true,
7+
"tabWidth": 2,
8+
"printWidth": 100,
9+
"plugins": [
10+
"prettier-plugin-tailwindcss"
11+
]
12+
}

0 commit comments

Comments
 (0)