From 4726f1d0ced8c365f2e3559693559cd22ba92458 Mon Sep 17 00:00:00 2001 From: siarheirazuvalau Date: Thu, 21 May 2026 20:40:16 +0300 Subject: [PATCH 1/3] Update linter: lint files on commit --- .husky/post-commit | 2 ++ .husky/pre-commit | 2 ++ ui/package.json | 1 + 3 files changed, 5 insertions(+) create mode 100644 .husky/post-commit create mode 100644 .husky/pre-commit diff --git a/.husky/post-commit b/.husky/post-commit new file mode 100644 index 0000000..e150351 --- /dev/null +++ b/.husky/post-commit @@ -0,0 +1,2 @@ +#!/bin/sh +git update-index --again diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 0000000..726a240 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,2 @@ +#!/bin/sh +cd ui && npx lint-staged diff --git a/ui/package.json b/ui/package.json index 027e7db..52c4398 100644 --- a/ui/package.json +++ b/ui/package.json @@ -12,6 +12,7 @@ "lint": "npm run type-check && npm run eslint && npm run stylelint", "format": "npm run eslint -- --fix", "format:scss": "npm run stylelint -- --fix", + "prepare": "cd .. && husky install", "precommit": "lint-staged", "postcommit": "git update-index --again" }, From 076255b4dee0539e1a79d322a8a3eecaf850009a Mon Sep 17 00:00:00 2001 From: siarheirazuvalau Date: Thu, 21 May 2026 20:43:41 +0300 Subject: [PATCH 2/3] Update linter: fix warning --- ui/package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/package.json b/ui/package.json index 52c4398..3e0efe5 100644 --- a/ui/package.json +++ b/ui/package.json @@ -79,10 +79,7 @@ "npm": ">=10.2.4" }, "lint-staged": { - "*.{ts,tsx}": [ - "eslint --fix", - "git add" - ], + "*.{ts,tsx}": ["eslint --fix"], "*.scss": [ "stylelint --fix", "prettier --write" From 9986592fa503314b18f95629009e587ef19ee672 Mon Sep 17 00:00:00 2001 From: siarheirazuvalau Date: Thu, 21 May 2026 20:55:51 +0300 Subject: [PATCH 3/3] Update linter: PR comments - 1 --- .husky/post-commit | 2 -- ui/package.json | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 .husky/post-commit diff --git a/.husky/post-commit b/.husky/post-commit deleted file mode 100644 index e150351..0000000 --- a/.husky/post-commit +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -git update-index --again diff --git a/ui/package.json b/ui/package.json index 3e0efe5..093e4d6 100644 --- a/ui/package.json +++ b/ui/package.json @@ -13,8 +13,7 @@ "format": "npm run eslint -- --fix", "format:scss": "npm run stylelint -- --fix", "prepare": "cd .. && husky install", - "precommit": "lint-staged", - "postcommit": "git update-index --again" + "precommit": "lint-staged" }, "author": "", "license": "Apache-2.0",