Skip to content

Commit

Permalink
chore: move lintstaged to root level
Browse files Browse the repository at this point in the history
Ticket: BG-00000
  • Loading branch information
byhow committed Aug 1, 2022
1 parent 9a79fbc commit 99c2281
Show file tree
Hide file tree
Showing 45 changed files with 3 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
rootDir=$(pwd)
cd "$rootDir"
## only run on packages that have changed
yarn lerna run precommit -- --since $(git rev-parse --short HEAD)
yarn precommit
1 change: 0 additions & 1 deletion modules/abstract-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build"
},
"author": "BitGo SDK Team <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion modules/abstract-utxo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build"
},
"author": "BitGo SDK Team <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion modules/account-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"coverage": "npm run gen-coverage && npm run upload-coverage",
"lint": "eslint --quiet 'src/**/*.ts' 'test/**/*.ts'",
"lint-fix": "eslint --fix 'src/**/*.ts' 'test/**/*.ts'",
"precommit": "yarn lint-staged",
"prepare": "npm run build-ts && cp -r ./resources ./dist",
"build-ts": "tsc --build --incremental --verbose .",
"unit-test": "nyc -- mocha",
Expand Down
1 change: 0 additions & 1 deletion modules/bitgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"prepublishOnly": "npm run compile",
"upload-artifacts": "node scripts/upload-test-reports.js",
"check-fmt": "prettier --check '{src,test}/**/*.{ts,js,json}'",
"precommit": "yarn lint-staged",
"unprettied": "grep -R -L --include '*.ts' --include '*.js' --include '*.json' '@prettier' src test",
"fmt": "prettier --write '{src,test}/**/*.{ts,js,json}'",
"upload-docs": "node scripts/upload-docs.js",
Expand Down
1 change: 0 additions & 1 deletion modules/blockapis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"build": "yarn tsc --build --incremental --verbose .",
"lint": "eslint --quiet .",
"unit-test": "mocha",
"precommit": "yarn lint-staged",
"fmt": "prettier --write '{bin,src,test}/**/*.{ts,js}'"
},
"repository": {
Expand Down
1 change: 0 additions & 1 deletion modules/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"update-bitgo": "bash ./scripts/update-bitgo.sh",
"build-docker": "docker build -f ../../Dockerfile --platform=linux/amd64 -t bitgosdk/express:latest -t bitgosdk/express:$(jq -r .version < package.json) ../..",
"push-docker": "docker push bitgosdk/express:latest bitgosdk/express:$(jq -r .version < package.json)",
"precommit": "yarn lint-staged",
"check-fmt": "yarn prettier --check '{src,test}/**/*.{ts,js,json}'",
"unprettied": "grep -R -L --include '*.ts' --include '*.js' --include '*.json' '@prettier' src test",
"fmt": "yarn prettier --write '{src,test}/**/*.{ts,js,json}'"
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"webpack-dev": "yarn webpack",
"webpack-prod": "yarn webpack --mode=production --node-env=production",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-ada/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-algo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-avaxc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-avaxp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-bch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-bcha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-bsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-bsv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-btc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-btg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-celo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-cspr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-dash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-doge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-dot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-eos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-etc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-eth2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-hbar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-ltc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-near/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-polygon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-rbtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-sol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-stx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-trx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build-ts && cp -r ./resources ./dist",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-xlm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-xrp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-xtz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-coin-zec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build"
},
"author": "BitGo SDK Team <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion modules/sdk-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build"
},
"author": "BitGo SDK Team <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion modules/statics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"fmt": "prettier --write .",
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"precommit": "yarn lint-staged",
"prepare": "npm run build"
},
"author": "BitGo SDK Team <[email protected]>",
Expand Down
1 change: 0 additions & 1 deletion modules/unspents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"test": "mocha",
"lint": "eslint --quiet .",
"prepare": "npm run build",
"precommit": "yarn lint-staged",
"unit-test": "npm run test"
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@
"sdk-coin:new": "yo ./scripts/sdk-coin-generator && yarn update-dockerfile",
"build-docker-express": "yarn update-dockerfile && docker build -t bitgosdk/express:latest -t bitgosdk/express:$(jq -r .version < modules/express/package.json) .",
"push-docker-express": "docker push bitgosdk/express:latest bitgosdk/express:$(jq -r .version < modules/express/package.json)",
"update-dockerfile": "ts-node scripts/update-dockerfile.ts"
"update-dockerfile": "ts-node scripts/update-dockerfile.ts",
"precommit": "lint-staged"
},
"dependencies": {}
}
1 change: 0 additions & 1 deletion scripts/sdk-coin-generator/template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"check-fmt": "prettier --check .",
"clean": "rm -r ./dist",
"lint": "eslint --quiet .",
"precommit": "yarn lint-staged",
"prepare": "npm run build",
"test": "npm run coverage",
"coverage": "nyc -- npm run unit-test",
Expand Down

0 comments on commit 99c2281

Please sign in to comment.