Skip to content

Commit

Permalink
add husky pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Sep 19, 2024
1 parent 214b2eb commit 280ec5e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 13 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint:check
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"test:ci": "jest --runInBand --ci --coverage --coverageReporters json-summary text html lcov",
"build": "tsc --build",
"lint:fix": "eslint --fix ./",
"lint:check": "eslint ./"
"lint:check": "eslint ./",
"prepare": "husky"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -65,6 +66,7 @@
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.1.6",
"jest": "^29.7.0",
"prettier": "^3.2.4",
"ts-jest": "^29.1.1",
Expand Down
12 changes: 0 additions & 12 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ type Functions = {
[key: string]: IacFunction;
};

type Gateway = {
type: string;
name: string;
description: string;
protocol: string;
method: string;
};

type Gateways = {
[key: string]: Gateway;
};

type Event = {
type: string;
source: string;
Expand Down

0 comments on commit 280ec5e

Please sign in to comment.