-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathlefthook.yml
More file actions
24 lines (20 loc) · 669 Bytes
/
lefthook.yml
File metadata and controls
24 lines (20 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: 2
pre-commit:
parallel: true
jobs:
- name: format
run: pnpm exec prettier --write {staged_files}
glob: '**/*.{js,jsx,ts,tsx,md,svelte}'
- name: oxlint
run: pnpm exec oxlint {staged_files}
glob: '**/*.{js,jsx,ts,tsx}'
- name: eslint
run: pnpm exec eslint {staged_files}
glob: '**/*.svelte'
- name: plan-lambda-check
run: >
if grep -nE '\([a-z]\)\s*(=>|:)' -- {staged_files}; then
echo "Error: single-char lambda/type parameters found in plan code blocks. Rename to full domain concept (workbook, placement, group, ...)";
exit 1;
fi
glob: 'docs/**/*.md'