From 7a93ca39ee32566a1c25f89e7a5cf33a94f6e452 Mon Sep 17 00:00:00 2001 From: Artem Abramov1 Date: Mon, 2 Dec 2024 11:53:45 +0400 Subject: [PATCH] feat: fix commitlint --- .husky/commit-msg | 3 --- .husky/pre-commit | 3 --- commitlint.config.js | 8 ++------ 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 3b4299e..da99483 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no -- commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 767b198..2ca62f7 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx @biomejs/biome check src diff --git a/commitlint.config.js b/commitlint.config.js index 2b0c028..d486aa6 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,10 +1,6 @@ module.exports = { extends: ['@commitlint/config-conventional'], rules: { - 'type-enum': [ - 2, - 'always', - ['feat', 'fix', 'doc', 'style', 'refactor', 'test', 'revert', 'build', 'ci', 'perf', 'conf'] - ] - } + 'body-max-line-length': [0], + }, };