-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: lint pr title, move lint/format to ci and rm husky (#27)
* ci: add lint pr workflow * chore: make first mention of tRPC and Koa links * chore: manual trigger for test * Revert "chore: manual trigger for test" This reverts commit bb5efac. * chore: attempt to trigger on pr * Revert "chore: attempt to trigger on pr" This reverts commit a8a192d. * chore: switch trigger - should work with forks and avoids potential secutity issue? amannn/action-semantic-pull-request#219 * ci: run tests against node version 16, 18, 20 * ci: fix node 16 tests * chore: rm commit msg lint linting in PR title. individual commits technically dont matter because they are squash/merged. * chore: rm typo item for unused pkg manager file * chore: make eslint stricter, apply to test * ci: add lint, format to gh workflow * chore: rm husky hooks * fix: gh action lint, install order * chore: update package lock
- Loading branch information
1 parent
84e4f97
commit 198cf1b
Showing
12 changed files
with
52 additions
and
702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: 'Lint PR' | ||
|
||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
node_modules | ||
dist | ||
coverage | ||
notes.md | ||
yaen-error.log | ||
notes.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,14 @@ | |
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"ci-install": "HUSKY=0 pnpm install", | ||
"build": "rm -rf ./dist && tsc", | ||
"test": "jest", | ||
"lint": "eslint --fix \"src/**/*.{js,ts}\"", | ||
"format": "prettier --config --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"", | ||
"prepare": "husky install", | ||
"prettier": "prettier --write --config --ignore-path .gitignore \"**/*.+(js|ts|json)\"", | ||
"lint": "eslint --fix --max-warnings=0 src/**/*.ts test/**/*.ts", | ||
"format": "pnpm prettier && pnpm lint", | ||
"check:prettier": "prettier --check --config --ignore-path .gitignore \"**/*.+(js|ts|json)\"", | ||
"check:lint": "eslint --max-warnings=0 src/**/*.ts test/**/*.ts", | ||
"check:format": "pnpm prettier && pnpm lint", | ||
"semantic-release": "semantic-release" | ||
}, | ||
"files": [ | ||
|
@@ -30,8 +32,6 @@ | |
], | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@koa/bodyparser": "^5.0.0", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
|
@@ -45,11 +45,9 @@ | |
"conventional-changelog-conventionalcommits": "^6.1.0", | ||
"eslint": "^8.44.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"husky": "^8.0.3", | ||
"jest": "^29.5.0", | ||
"koa": "^2.14.2", | ||
"koa-bodyparser": "^4.4.1", | ||
"lint-staged": "^13.2.3", | ||
"prettier": "^2.8.8", | ||
"semantic-release": "^21.0.6", | ||
"supertest": "^6.3.3", | ||
|
@@ -59,17 +57,5 @@ | |
"peerDependencies": { | ||
"@trpc/server": "^10.0.0-rc.4", | ||
"koa": ">=2.13.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "pnpm lint-staged && pnpm test" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.{ts,js}": [ | ||
"prettier --write --config ./.prettierrc", | ||
"eslint --fix --max-warnings=0" | ||
] | ||
} | ||
} |
Oops, something went wrong.