From b5e40c7206c86cc16a444804f4881aa6efa0bd7a Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Wed, 15 Nov 2023 21:29:22 +0100 Subject: [PATCH] Add pre-commit hooks for website workspace --- .pre-commit-config.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ecfb35e18..1992bdcb7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,18 @@ repos: types_or: [json,yaml] language: script description: "Checks JSON/YAML code according to the package's linter configuration" + # Website + - id: website-lint-js + name: "lint website ts/js" + entry: /usr/bin/env bash -c "npm run lint:js -- -w website" + files: ^website/ + types_or: [ts,tsx,javascript,jsx] + language: script + description: "Checks TS/JS code according to the package's linter configuration" + - id: website-lint-config + name: "lint website json/yaml" + entry: /usr/bin/env bash -c "npm run lint:config -- -w website" + files: ^website/ + types_or: [json,yaml] + language: script + description: "Checks JSON/YAML code according to the package's linter configuration"