Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit b9ee5e2

Browse files
committed
Add pre-commit hooks and update markdownlint step
1 parent d177751 commit b9ee5e2

File tree

5 files changed

+979
-119
lines changed

5 files changed

+979
-119
lines changed

.github/workflows/_static-checks.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ jobs:
1818
run: npm run eslint
1919

2020
- name: Run markdownlint
21-
uses: DavidAnson/markdownlint-cli2-action@a23dae216ce3fee4db69da41fed90d2a4af801cf # v19
22-
with:
23-
globs: |
24-
**/*.md
25-
!node_modules
21+
run: npm run markdownlint
2622

2723
- name: Run Prettier
2824
run: npm run prettier

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.{js,jsx,ts,tsx,mjs,cjs}": ["npx prettier --write", "npx eslint --fix"],
3+
"*.md": ["npx prettier --write", "npx markdownlint-cli2 --fix"],
4+
"*.css": ["npx prettier --write"]
5+
}

0 commit comments

Comments
 (0)