Skip to content

Commit 31af3ae

Browse files
ci(github): add package lint check to lint workflow and pre-commit hook
1 parent 0cd2dd8 commit 31af3ae

4 files changed

Lines changed: 75 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ jobs:
3131

3232
- name: Check types
3333
run: npm run lint:types
34+
35+
- name: Lint package
36+
run: npm run lint:package

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ npm run build
22
npm run lint:tsc
33
npm run test:ci
44
npm run lint:types
5+
npm run lint:package
56
npx lint-staged

package-lock.json

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

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"docs:watch": "npm run docs -- --watch",
1515
"lint": "eslint .",
1616
"lint:fix": "npm run lint -- --fix",
17+
"lint:package": "publint",
1718
"lint:tsc": "tsc --project tsconfig.test.json",
1819
"lint:types": "npx @arethetypeswrong/cli --pack",
1920
"prepare": "husky",
@@ -64,6 +65,7 @@
6465
"phaser": "4.2.0",
6566
"phaser3spectorjs": "0.0.8",
6667
"prettier": "3.9.4",
68+
"publint": "0.3.21",
6769
"react": "19.2.7",
6870
"rollup": "4.62.2",
6971
"ts-node": "10.9.2",

0 commit comments

Comments
 (0)