feat: add husky for handling pre commit rules

This commit is contained in:
Meysam Hadeli 2024-09-16 02:17:30 +03:30
parent 6da82e39ce
commit 89657e832b
5 changed files with 3 additions and 12 deletions

1
.husky/commit-msg Normal file
View File

@ -0,0 +1 @@
npx --no -- commitlint --edit ${1}

View File

@ -1,7 +1,7 @@
{
"name": "booking-microservices",
"version": "1.0.0",
"description": "",
"description": "booking-microservices",
"author": "Meysam Hadeli",
"license": "MIT",
"main": "index.js",

View File

@ -1,10 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\BuildingBlocks\BuildingBlocks.csproj" />
</ItemGroup>

View File

@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\..\..\..\BuildingBlocks\BuildingBlocks.csproj" />
</ItemGroup>
@ -9,10 +9,6 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.8">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>

View File

@ -27,7 +27,6 @@ public static class GrpcClientExtensions
})
.AddGrpcRetryPolicyHandler()
.AddGrpcCircuitBreakerPolicyHandler();
;
return services;
}