Skip to content

Commit

Permalink
chore: add pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Dec 13, 2024
1 parent 94af192 commit f0ea79c
Show file tree
Hide file tree
Showing 8 changed files with 709 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
**/.travis.yml export-ignore
**/.editorconfig export-ignore
**/.styleci.yml export-ignore
**/.lintstagedrc.yml
.husky export-ignore

**/phpunit.xml export-ignore
**/tests export-ignore
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Mobile tab JS

on: [workflow_dispatch, push, pull_request]

env:
HUSKY: 0

jobs:
run:
uses: flarum/framework/.github/workflows/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,ts,tsx,less,yml}": "prettier --write"
}
Loading

0 comments on commit f0ea79c

Please sign in to comment.