Commit 146cda4
chore: add lint-staged with pre-commit hooks for src/ directory (#38)
* chore: add lint-staged with pre-commit hooks for src/ directory
- Upgrade husky from 8.0.3 to 9.1.7
- Add lint-staged 16.2.3 for automated code quality checks
- Configure lint-staged to run eslint and prettier on src/**/*.{ts,tsx}
- Update pre-commit hook to use lint-staged
- Add post-checkout hook for automatic dependency installation
- Add pre-push hook to prevent direct pushes to main branch
This matches the setup in jupyterlab-deepnote for consistency.
* fix: update package-lock.json for husky 9.1.7 and lint-staged 16.2.3
Update package-lock.json to match the package.json changes made in the previous commit.
This resolves the npm ci failures in CI where the lock file was out of sync with package.json.
All verification steps passed locally:
- npm run lint ✓
- npm run format ✓
- npm run typecheck ✓
- npm run compile ✓
- npm test ✓ (1329 passing)
* Update .husky/post-checkout
Co-authored-by: Christoffer Artmann <Artgaard@gmail.com>
* fix: package-lock.json
* remove .eslintcache
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Lukas Šaltėnas <lukas.saltenas@gmail.com>
Co-authored-by: Christoffer Artmann <Artgaard@gmail.com>1 parent f5cec10 commit 146cda4
File tree
6 files changed
+786
-114
lines changed- .husky
6 files changed
+786
-114
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
| 6 | + | |
| 7 | + | |
2 | 8 | | |
3 | | - | |
4 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
5 | 20 | | |
6 | | - | |
7 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
8 | 24 | | |
9 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
10 | 32 | | |
| 33 | + | |
| 34 | + | |
11 | 35 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
19 | 41 | | |
20 | 42 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 43 | | |
29 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
30 | 48 | | |
31 | | - | |
| 49 | + | |
| 50 | + | |
32 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
33 | 55 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 60 | + | |
53 | 61 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments