Commit 88fd175
chore: add lint-staged with pre-commit hooks for src/ directory (#18)
* feat: add lint-staged with pre-commit hooks for src/ directory
- Add husky (9.1.7) and lint-staged (16.2.3) dependencies
- Configure lint-staged to run eslint and prettier on src/**/*.{ts,tsx} files
- Add pre-commit hook to run lint-staged
- Add post-checkout hook to run yarn install
- Add pre-push hook to prevent direct pushes to main
- Add .venv to .prettierignore to fix lint:check
* fix: use jlpm instead of yarn in husky hooks
- Update pre-commit hook to use 'jlpm exec lint-staged'
- Update post-checkout hook to use 'jlpm install'
- Aligns with jupyterlab-deepnote's package manager setup
* fix: remove packageManager field from package.json
The packageManager field was automatically added by yarn during
initial development but should not be present since jupyterlab-deepnote
uses jlpm (JupyterLab's yarn wrapper) for package management.
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>1 parent ec81dd0 commit 88fd175
File tree
6 files changed
+236
-3
lines changed- .husky
6 files changed
+236
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| |||
0 commit comments