Skip to content

Commit 3e80d1a

Browse files
committed
chore: update husky files to run eslint
1 parent 899d721 commit 3e80d1a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.husky/pre-commit

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55

66
. "$(dirname "$0")/_/husky.sh"
77

8-
yarn pretty-quick --staged && yarn lint
8+
yarn type-check
9+
yarn prettier:check
10+
yarn lint

.husky/pre-push

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55

66
. "$(dirname "$0")/_/husky.sh"
77

8-
yarn lint && yarn build
8+
yarn type-check
9+
yarn lint
10+
yarn build

cypress/support/commands.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/// <reference types="../../src/interfaces/window" />
2+
import { PermissionLevel } from '@graasp/sdk';
3+
24
import '@testing-library/cypress/add-commands';
35

46
import { CURRENT_MEMBER, MEMBERS, MOCK_SERVER_ITEM } from '../../src/data/db';
@@ -49,6 +51,8 @@ Cypress.Commands.add(
4951
memberId: currentMember.id,
5052
itemId: MOCK_SERVER_ITEM.id,
5153
apiHost: Cypress.env('VITE_GRAASP_API_HOST') || MOCK_SERVER_API_HOST,
54+
context: 'standalone',
55+
permission: PermissionLevel.Read,
5256
...appContext,
5357
};
5458
});

0 commit comments

Comments
 (0)