add allowSyntheticDefaultImports

This commit is contained in:
Matthias Kretschmann 2019-11-12 11:28:18 +01:00
parent 2fd4e94f29
commit c122e06871
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 8 additions and 4 deletions

View File

@ -3,6 +3,7 @@
"resolveJsonModule": true,
"lib": ["es6", "es7", "dom"],
"noUnusedLocals": true,
"esModuleInterop": true
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
}
}

View File

@ -15,7 +15,7 @@ export abstract class ContractBase extends Instantiable {
return this.contract.options.address
}
constructor(contractName, private optional: boolean = false) {
constructor(contractName: string, private optional: boolean = false) {
super()
this.contractName = contractName
}

View File

@ -130,8 +130,9 @@ export default class TestContractHandler extends ContractHandler {
const sendConfig = {
from,
gas: 3000000,
gasPrice: String(10000000000)
gasPrice: '10000000000'
}
// eslint-disable-next-line security/detect-non-literal-require
const artifact = require(`@oceanprotocol/keeper-contracts/artifacts/${name}.development.json`)
const tempContract = new web3.eth.Contract(artifact.abi, artifact.address)
const isZos = !!tempContract.methods.initialize

View File

@ -3,6 +3,7 @@
"resolveJsonModule": true,
"lib": ["es6", "es7"],
"noUnusedLocals": true,
"esModuleInterop": true
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
}
}

View File

@ -3,6 +3,7 @@
"resolveJsonModule": true,
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"lib": ["es2017", "es6", "es7", "dom"],
"declaration": true,
"module": "commonjs",