mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
Workaround for https://github.com/eslint/eslint/issues/15299 in the contract tslinter
Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>
This commit is contained in:
parent
8af0ed1b96
commit
13a692eb38
2 changed files with 3 additions and 1 deletions
|
|
@ -76,8 +76,10 @@ module.exports = {
|
|||
4,
|
||||
{
|
||||
SwitchCase: 0,
|
||||
ignoredNodes: ["PropertyDefinition"]
|
||||
},
|
||||
],
|
||||
|
||||
'@typescript-eslint/prefer-nullish-coalescing': ['error'],
|
||||
'@typescript-eslint/prefer-optional-chain': ['error'],
|
||||
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ function hasWritePermission(ctx: Context, asset: Asset): boolean {
|
|||
function clientIdentifier(ctx: Context, user?: string): OwnerIdentifier {
|
||||
return {
|
||||
org: ctx.clientIdentity.getMSPID(),
|
||||
user: user || clientCommonName(ctx),
|
||||
user: user ?? clientCommonName(ctx),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue