Skip to content

Commit 420029c

Browse files
chore: add husky pre-commit hook to run lint,prettier and formatting (#1356)
* chore: add husky pre-commit hook to run lint,prettier and formatting * fix: add unique username to UserFactory
1 parent e1466be commit 420029c

5 files changed

Lines changed: 1038 additions & 4 deletions

File tree

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

database/factories/UserFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function definition(): array
2121
'last_name' => $this->faker->lastName(),
2222
'email' => $this->faker->unique()->safeEmail(),
2323
'email_verified_at' => now(),
24-
'username' => $this->faker->userName(),
24+
'username' => $this->faker->unique()->userName(),
2525
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
2626
'remember_token' => Str::random(10),
2727
];

0 commit comments

Comments
 (0)