Skip to content

Commit 529a734

Browse files
committed
Fix lefthook tests
1 parent 2fe0a85 commit 529a734

38 files changed

+424
-47
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gitdir: ../lefthook-v1/.git/worktrees/lefthook-v1-worktree-branch-checkout
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
pre-push:
2+
parallel: true
3+
4+
pre-commit:
5+
commands:
6+
frontend-linter:
7+
run: yarn eslint {staged_files}
8+
backend-linter:
9+
run: bundle exec rubocop --force-exclusion {all_files}
10+
frontend-style:
11+
files: git diff --name-only HEAD @{push}
12+
run: yarn stylelint {files}
13+
14+
post-commit:
15+
parallel: true
16+
commands:
17+
format:
18+
glob: '*.{ts,tsx,md,json,vue,yml}'
19+
run: npx --no prettier {staged_files} --w
20+
eslint:
21+
glob: '*.{js,ts,jsx,tsx,vue}'
22+
run: npx --no eslint --color --fix {staged_files}
23+
24+
fixer:
25+
commands:
26+
ruby-fixer:
27+
run: bundle exec rubocop --force-exclusion --safe-auto-correct {staged_files}
28+
js-fixer:
29+
run: yarn eslint --fix {staged_files}

packages/knip/fixtures/plugins/lefthook-v1-worktree-branch-checkout/node_modules/eslint/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/knip/fixtures/plugins/lefthook-v1-worktree-branch-checkout/node_modules/lefthook/package.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/knip/fixtures/plugins/lefthook-v1-worktree-branch-checkout/node_modules/prettier/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/knip/fixtures/plugins/lefthook-v1-worktree-branch-checkout/node_modules/stylelint/package.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@fixtures/lefthook-v1",
3+
"scripts": {},
4+
"devDependencies": {
5+
"eslint": "*",
6+
"lefthook": "*",
7+
"prettier": "*",
8+
"stylelint": "*"
9+
}
10+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
initial commit

0 commit comments

Comments
 (0)