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:
Josh Kneubuhl 2022-11-10 06:16:34 -05:00
parent 8af0ed1b96
commit 13a692eb38
2 changed files with 3 additions and 1 deletions

View file

@ -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'],

View file

@ -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),
};
}