Skip to content

perf: Remove commitlint and husky #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/conventional-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
steps:
- uses: bcoe/conventional-release-labels@v1
with:
type_labels: '{"feat": "💡 Feature", "fix": "🐞 Bug", "breaking": "🚨 Breaking Changes", "docs": "📖 Documentation", "style": "💅 Style", "refactor": "🚀 Performerce", "test": "🧪 Test"}'
type_labels: '{"feat": "💡 Feature", "fix": "🐞 Bug", "breaking": "🚨 Breaking Changes", "docs": "📖 Documentation", "style": "💅 Style", "refactor": "🚀 Performerce", "perf": "🚀 Performerce", "test": "🧪 Test"}'
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"cSpell.words": [
"clsx",
"Codegen",
"commitlint",
"hookform",
"lucide",
"nestjs",
Expand Down
19 changes: 0 additions & 19 deletions commitlint.config.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const mutationChangePositionApi = async (
});

revalidateTag("Forum_Forums__Show");
revalidateTag("Forum_Forums__Show_Item");

return { data };
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"use server";

import { revalidateTag } from "next/cache";

import { fetcher } from "@/graphql/fetcher";
import {
Admin__Forum_Forums__Show,
Expand All @@ -19,6 +21,10 @@ export const mutationUpdateDataApi = async (
variables
});

revalidateTag("Forum_Forums__Show");
revalidateTag("Forum_Forums__Show_Item");
revalidateTag("Forum_Topics__Show");

return { data };
} catch (error) {
return { error };
Expand Down
2 changes: 2 additions & 0 deletions frontend/hooks/forums/forum/posts/create/mutation-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const mutationApi = async (
variables
});

revalidateTag("Forum_Forums__Show");
revalidateTag("Forum_Forums__Show_Item");
revalidateTag("Forum_Topics__Show");

return { data };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const mutationApi = async (
variables
});

revalidateTag("Forum_Forums__Show_Item");
revalidateTag("Forum_Topics__Show");

return { data };
Expand Down
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"author": "Maciej Piotr (aXenDev) Balcerzak",
"license": "GPL-3.0 license",
"scripts": {
"prepare": "npx husky install",
"config:init": "cd backend && pnpm config:init && cd ..",
"config:finish": "cd backend && pnpm config:finish && cd ..",
"backend:build": "cd backend && pnpm build && cd .. pnpm config:finish",
Expand All @@ -22,9 +21,6 @@
"lint:fix": "cd backend && pnpm lint:fix && cd .. && cd frontend && pnpm lint:fix && cd .."
},
"devDependencies": {
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.5.11"
}
Expand Down
Loading