Skip to content

Commit

Permalink
Merge pull request #33 from CityOfZion/CU-86a23awd8
Browse files Browse the repository at this point in the history
CU-86a23awd8 - Fix lint errors and lint script that is not working on macos
  • Loading branch information
lock9 authored Jan 30, 2024
2 parents 210e699 + 5714f15 commit 4a3f0d8
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 6 deletions.
8 changes: 7 additions & 1 deletion common/autoinstallers/rush-format/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ function getAllPaths(): string[] {
export function runCommandInEachPackage(cmd: string) {
let error = false
const packages = getAllPaths()

for (const lib of packages) {
try {
const pathLib = path.posix.join(packagesPath, lib)

const isDirectory = fs.lstatSync(pathLib).isDirectory()
if (!isDirectory) continue

execSync(`${cmd}`, { cwd: pathLib, stdio: 'inherit' })
} catch {
} catch (error) {
error = true
}
}

if (error) {
console.error('\nPlease, check the errors above before committing/pushing!\n')
process.exitCode = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/bs-neo-legacy",
"comment": "Fixed lint errors that were preventing the build",
"type": "patch"
}
],
"packageName": "@cityofzion/bs-neo-legacy"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/bs-neo3",
"comment": "Fixed lint errors that were preventing the build",
"type": "patch"
}
],
"packageName": "@cityofzion/bs-neo3"
}
Empty file modified common/git-hooks/pre-commit
100644 → 100755
Empty file.
Empty file modified common/git-hooks/pre-push
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion packages/bs-neo-legacy/src/BSNeoLegacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import { keychain } from '@cityofzion/bs-asteroid-sdk'
import { DoraESNeoLegacy } from './DoraESNeoLegacy'

export class BSNeoLegacy<BSCustomName extends string = string>
implements BlockchainService, BSClaimable, BSWithExplorerService {
implements BlockchainService, BSClaimable, BSWithExplorerService
{
readonly blockchainName: BSCustomName
readonly feeToken: Token
readonly claimToken: Token
Expand Down
2 changes: 1 addition & 1 deletion packages/bs-neo-legacy/src/__tests__/BDSNeoLegacy.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe('BDSNeoLegacy', () => {
decimals: expect.any(Number),
},
})
expect(balance.token.hash.startsWith("0x")).toBeFalsy()
expect(balance.token.hash.startsWith('0x')).toBeFalsy()
})
})

Expand Down
2 changes: 1 addition & 1 deletion packages/bs-neo-legacy/src/assets/tokens/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"hash": "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b",
"decimals": 0
}
]
]
2 changes: 1 addition & 1 deletion packages/bs-neo-legacy/src/assets/tokens/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,4 @@
"hash": "3e09e602eeeb401a2fec8e8ea137d59aae54a139",
"decimals": 8
}
]
]
3 changes: 2 additions & 1 deletion packages/bs-neo3/src/BSNeo3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import { keychain } from '@cityofzion/bs-asteroid-sdk'
import { DoraESNeo3 } from './DoraESNeo3'

export class BSNeo3<BSCustomName extends string = string>
implements BlockchainService, BSClaimable, BSWithNameService, BSCalculableFee, BSWithNft, BSWithExplorerService {
implements BlockchainService, BSClaimable, BSWithNameService, BSCalculableFee, BSWithNft, BSWithExplorerService
{
readonly blockchainName: BSCustomName
readonly feeToken: Token
readonly claimToken: Token
Expand Down

0 comments on commit 4a3f0d8

Please sign in to comment.