diff --git a/.husky/pre-commit b/.husky/pre-commit index c18cf4092..cf4945039 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,8 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" +# Auto-format all files +yarn nx format:write + # Lint all staged files yarn lint-staged diff --git a/.husky/pre-push b/.husky/pre-push index 30b469329..1005415e7 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,8 +1,8 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -# Lint all staged files -yarn nx format:check +# Lint all staged files - this brings more value as pre-commit +# yarn nx format:check # Test all projects with changes -yarn nx affected -t test --exclude trading +# yarn nx affected -t test --exclude trading diff --git a/apps/trading/.env.mainnet b/apps/trading/.env.mainnet index 5bdd8db66..8627feb8b 100644 --- a/apps/trading/.env.mainnet +++ b/apps/trading/.env.mainnet @@ -22,10 +22,9 @@ NX_WALLETCONNECT_PROJECT_ID=fe8091dc35738863e509fc4947525c72 NX_SUCCESSOR_MARKETS=true NX_STOP_ORDERS=true NX_ICEBERG_ORDERS=true -# NX_PRODUCT_PERPETUALS NX_METAMASK_SNAPS=true -NX_REFERRALS=false +NX_REFERRALS=true +NX_DISABLE_CLOSE_POSITION=true NX_TENDERMINT_URL=https://be.vega.community NX_TENDERMINT_WEBSOCKET_URL=wss://be.vega.community/websocket -NX_DISABLE_CLOSE_POSITION=true diff --git a/apps/trading/.env.testnet b/apps/trading/.env.testnet index 853689764..5ed45946f 100644 --- a/apps/trading/.env.testnet +++ b/apps/trading/.env.testnet @@ -23,7 +23,6 @@ NX_WALLETCONNECT_PROJECT_ID=fe8091dc35738863e509fc4947525c72 NX_SUCCESSOR_MARKETS=true NX_STOP_ORDERS=true NX_ICEBERG_ORDERS=true -# NX_PRODUCT_PERPETUALS NX_METAMASK_SNAPS=true NX_REFERRALS=true