feat: add husky pre-commit hooks and reusable CI lint workflow

- Add husky with lint-staged for pre-commit checks (eslint --fix, prettier --write)
- Add reusable lint.yml workflow (eslint, prettier, tsc)
- Gate docker, release, and CI pipelines behind lint job via needs: lint
This commit is contained in:
c0mrade
2026-01-27 17:37:53 +03:00
parent bc90ba3779
commit f0cfdfdd2a
5 changed files with 45 additions and 7 deletions

View File

@@ -13,7 +13,11 @@ env:
IMAGE_NAME: ${{ github.repository }}
jobs:
lint:
uses: ./.github/workflows/lint.yml
build-and-push:
needs: lint
runs-on: ubuntu-latest
permissions:
contents: read