Commit d0747b7c authored by Indeavr's avatar Indeavr

fix(lint)

parent cf0d19ac
...@@ -31,8 +31,10 @@ const main = async () => { ...@@ -31,8 +31,10 @@ const main = async () => {
// eslint-disable-next-line @typescript-eslint/no-var-requires // eslint-disable-next-line @typescript-eslint/no-var-requires
const artifact = require(artifactPath) const artifact = require(artifactPath)
// handles the case - '\u' (\utils folder) is considered as an unicode encoded char // handles the case - '\u' (\utils folder) is considered as an unicode encoded char
const pattern=/\\/g; const pattern = /\\/g
const relPath = path.relative(__dirname, artifactPath).replace(pattern,"/") const relPath = path
.relative(__dirname, artifactPath)
.replace(pattern, '/')
return ` return `
let ${artifact.contractName} let ${artifact.contractName}
try { try {
......
...@@ -27,7 +27,7 @@ const main = async () => { ...@@ -27,7 +27,7 @@ const main = async () => {
}) })
const artifactNames = [] const artifactNames = []
const pattern=/\\/g; const pattern = /\\/g
for (const deploymentName of deploymentNames) { for (const deploymentName of deploymentNames) {
const deploymentArtifacts = glob.sync( const deploymentArtifacts = glob.sync(
...@@ -39,7 +39,9 @@ const main = async () => { ...@@ -39,7 +39,9 @@ const main = async () => {
) )
for (const artifactPath of deploymentArtifacts) { for (const artifactPath of deploymentArtifacts) {
const relPath = path.relative(__dirname, artifactPath).replace(pattern,"/") const relPath = path
.relative(__dirname, artifactPath)
.replace(pattern, '/')
const contractName = path.basename(artifactPath, '.json') const contractName = path.basename(artifactPath, '.json')
const artifactName = `${deploymentName}__${contractName}`.replace( const artifactName = `${deploymentName}__${contractName}`.replace(
/-/g, /-/g,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment