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", "name": "booking-microservices",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "booking-microservices",
"author": "Meysam Hadeli", "author": "Meysam Hadeli",
"license": "MIT", "license": "MIT",
"main": "index.js", "main": "index.js",

View File

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

View File

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

View File

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