Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ on:
- main
- master
- develop
- naga
- 'feature/**'
pull_request:
branches:
- main
- master
- develop
- naga
env:
LIT_STATUS_WRITE_KEY: ${{ secrets.LIT_STATUS_WRITE_KEY }}
LIT_STATUS_BACKEND_URL: ${{ vars.LIT_STATUS_BACKEND_URL }}
Expand Down
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
if ! head -1 "$1" | grep -qE "^(feat|fix|chore|docs|test|style|refactor|perf|build|ci|revert|wip)(\(.+?\))?: .{1,}$|^Merge branch .+$"; then
echo "Aborting commit. Your commit message must match https://www.conventionalcommits.org/en/v1.0.0/" >&2
exit 1
fi
Copy link

Copilot AI Aug 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a trailing space after 'fi' which should be removed for cleaner code.

Suggested change
fi
fi

Copilot uses AI. Check for mistakes.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f you copilot

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLUTCH REVIEW FEEDBACK.

2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bun lint-staged
bun -r run typecheck --if-present
17 changes: 17 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
'*.{ts,tsx,cjs,js}': (files) => {
const filteredFiles = files.filter((file) => !file.includes('generated'));
return filteredFiles.length > 0
? [
`prettier --write ${filteredFiles.join(' ')}`,
`eslint --fix ${filteredFiles.join(' ')}`,
]
: [];
},
'*.{json,md}': (files) => {
const filteredFiles = files.filter((file) => !file.includes('generated'));
return filteredFiles.length > 0
? `prettier --write ${filteredFiles.join(' ')}`
: [];
},
};
Loading
Loading