Skip to content

Commit 2b2872c

Browse files
chore: updates to Husky (#929)
1 parent 8a3de6b commit 2b2872c

File tree

6 files changed

+4
-19
lines changed

6 files changed

+4
-19
lines changed

.husky/commit-msg

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

.husky/common.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

.husky/pre-commit

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ TypeScript are pre-configured with custom path mappings. To import components or
113113

114114
```tsx
115115
import { Button } from '@/components/Button';
116-
117116
// To import images or other files from the public folder
118117
import avatar from '@/public/avatar.png';
119118
```
@@ -122,6 +121,8 @@ import avatar from '@/public/avatar.png';
122121

123122
This starter uses pnpm by default, but this choice is yours. If you'd like to switch to Yarn/npm, delete the `pnpm-lock.yaml` file, install the dependencies with Yarn/npm, change the CI workflow, and Husky Git hooks to use Yarn/npm commands.
124123

124+
> **Note:** If you use Yarn, make sure to follow these steps from the [Husky documentation](https://typicode.github.io/husky/troubleshoot.html#yarn-on-windows) so that Git hooks do not fail with Yarn on Windows.
125+
125126
## License
126127

127128
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for more information.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"type-check": "tsc --noEmit",
1818
"lint": "eslint --ignore-path .gitignore \"src/**/*.+(ts|js|tsx)\"",
1919
"format": "prettier --ignore-path .gitignore \"src/**/*.+(ts|js|tsx)\" --write",
20-
"postinstall": "husky install"
20+
"postinstall": "husky"
2121
},
2222
"lint-staged": {
2323
"./src/**/*.{ts,js,jsx,tsx}": [

src/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Inter } from 'next/font/google';
77
const inter = Inter({ subsets: ['latin'] });
88

99
export const metadata: Metadata = {
10-
title: `TypeScript starter for Next.js`,
10+
title: `TypeScript starter for Next.js by João Pedro Schmitz`,
1111
description: `TypeScript starter for Next.js that includes all you need to build amazing apps`,
1212
};
1313

0 commit comments

Comments
 (0)