mirror of
https://github.com/openharmony/third_party_typescript_eslint.git
synced 2026-06-30 21:27:59 -04:00
chore: simplify git hooks (#445)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
{
|
||||
"hooks": {
|
||||
"pre-commit": [
|
||||
"yarn test && lint-staged"
|
||||
],
|
||||
"pre-commit": "yarn pre-commit",
|
||||
"pre-push": "yarn pre-push",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ jobs:
|
||||
displayName: 'Typecheck all packages'
|
||||
|
||||
- script: |
|
||||
yarn check-format
|
||||
yarn format-check
|
||||
displayName: 'Check code formatting'
|
||||
|
||||
- script: |
|
||||
|
||||
+9
-7
@@ -17,19 +17,21 @@
|
||||
"url": "https://github.com/typescript-eslint/typescript-eslint/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "lerna bootstrap && yarn build && lerna link",
|
||||
"test": "lerna run test --parallel",
|
||||
"build": "lerna run build",
|
||||
"clean": "lerna clean && lerna run clean",
|
||||
"typecheck": "lerna run typecheck",
|
||||
"lint": "eslint . --ext .js,.ts",
|
||||
"lint-fix": "eslint . --ext .js,.ts --fix",
|
||||
"cz": "git-cz",
|
||||
"check-format": "prettier --list-different \"./**/*.{ts,js,json,md}\"",
|
||||
"generate-contributors": "yarn ts-node ./tools/generate-contributors.ts && yarn all-contributors generate",
|
||||
"format": "prettier --write \"./**/*.{ts,js,json,md}\"",
|
||||
"format-check": "prettier --list-different \"./**/*.{ts,js,json,md}\"",
|
||||
"integration-tests": "docker-compose -f tests/integration/docker-compose.yml up",
|
||||
"kill-integration-test-containers": "docker-compose -f tests/integration/docker-compose.yml down -v --rmi local",
|
||||
"generate-contributors": "yarn ts-node ./tools/generate-contributors.ts && yarn all-contributors generate"
|
||||
"lint": "eslint . --ext .js,.ts",
|
||||
"lint-fix": "eslint . --ext .js,.ts --fix",
|
||||
"pre-commit": "yarn lint-staged",
|
||||
"pre-push": "yarn lint && yarn typecheck && yarn format-check",
|
||||
"postinstall": "lerna bootstrap && yarn build && lerna link",
|
||||
"test": "lerna run test --parallel",
|
||||
"typecheck": "lerna run typecheck"
|
||||
},
|
||||
"config": {
|
||||
"commitizen": {
|
||||
|
||||
Reference in New Issue
Block a user