From cfc6249bca42bd3bdd975332bf89e52ef2eef412 Mon Sep 17 00:00:00 2001 From: Barnando Akbarto Hidayatullah Date: Wed, 28 Jun 2023 00:21:39 +0700 Subject: [PATCH] fix(ci): change windows lint config --- .husky/commit-msg | 2 +- package.json | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 5ee62cb..b567676 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,4 @@ #!/usr/bin/env sh . "$(dirname -- "$0")/_/husky.sh" -npm run lint:commit +npx --no -- commitlint --edit "$1" diff --git a/package.json b/package.json index cadd44e..ab07055 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,12 @@ "main": "index.js", "scripts": { "prepare": "husky install", - "lint": "npm run lint:commit && npm run lint:html && npm run lint:css", + "lint": "npm run lint:html && npm run lint:css", "lint:staged": "lint-staged", "lint:css": "stylelint **/*.css --fix", "lint:html": "htmlhint **/*.html", - "lint:commit": "npx --no -- commitlint --edit \"$1\"", - "format:css": "prettier --write '**/*.css'", - "format:html": "prettier --write '**/*.html'" + "format:css": "prettier --write **/*.css", + "format:html": "prettier --write **/*.html" }, "lint-staged": { "*.css": [