Skip to content

Commit

Permalink
Add pre-commit hooks for website workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
r-czajkowski committed Nov 15, 2023
1 parent 29c1e93 commit b5e40c7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b5e40c7

Please sign in to comment.