Skip to content

Commit 56d101b

Browse files
committed
chore: eslint fixes
1 parent fc7c50d commit 56d101b

File tree

9 files changed

+23
-12
lines changed

9 files changed

+23
-12
lines changed

ui/build/icons/build.bootstrap-icons.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ fileContents
4545
return "'" + tag + "'"
4646
}).join(', ')
4747
icons.push(`{ name: '${line}', tags: [${tags}] }`)
48-
} else {
48+
}
49+
else {
4950
icons.push(`{ name: '${line}', tags: [] }`)
5051
}
5152
}

ui/build/icons/build.eva.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ fileContents
5050
return "'" + tag + "'"
5151
}).join(', ')
5252
icons.push(`{ name: '${line}', tags: [${tags}] }`)
53-
} else {
53+
}
54+
else {
5455
icons.push(`{ name: '${line}', tags: [] }`)
5556
}
5657
}

ui/build/icons/build.fontawesome.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fa.forEach(f => {
4040
const tags = f.tags
4141
if (oldIcons[name] !== void 0) {
4242
oldIcons[name].prefix.push(prefix)
43-
} else {
43+
}
44+
else {
4445
if (prefix === 'fab') {
4546
if (tags.includes('brand') !== true) {
4647
tags.push('brand')
@@ -60,7 +61,7 @@ fileContents
6061
if (line.startsWith('.fa')) {
6162
const pos = line.indexOf(':before')
6263
if (pos > 0) {
63-
let name = line.slice(1, pos)
64+
const name = line.slice(1, pos)
6465
if (blacklisted.includes(name) !== true) {
6566
if (oldIcons[name] !== void 0) {
6667
oldIcons[name].prefix.forEach(pfx => {
@@ -78,7 +79,8 @@ fileContents
7879
}).join(', ')
7980
icons.push(`{ name: '${name}', prefix: '${pfx}', tags: [${tags}] }`)
8081
})
81-
} else {
82+
}
83+
else {
8284
icons.push(`{ name: '${name}', prefix: '---', tags: [] }`)
8385
}
8486
}

ui/build/icons/build.google.material-icons.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ async function run () {
2121
// give function clean copy of google icons
2222
require('./build.material-icons-base.js').run(JSON.parse(JSON.stringify(icons)), themeMap[theme])
2323
})
24-
} catch (err) {
24+
}
25+
catch (err) {
2526
console.log('err', err)
2627
throw err
2728
}

ui/build/icons/build.ion.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ fileContents
4747
return "'" + tag + "'"
4848
}).join(', ')
4949
icons.push(`{ name: '${line}', tags: [${tags}] }`)
50-
} else {
50+
}
51+
else {
5152
icons.push(`{ name: '${line}', tags: [] }`)
5253
}
5354
}

ui/build/icons/build.line-awesome.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ fa.forEach(f => {
4040
const tags = f.tags
4141
if (oldIcons[name] !== void 0) {
4242
oldIcons[name].prefix.push(prefix)
43-
} else {
43+
}
44+
else {
4445
if (prefix === 'lab') {
4546
if (tags.includes('brand') !== true) {
4647
tags.push('brand')
@@ -78,7 +79,8 @@ fileContents
7879
}).join(', ')
7980
icons.push(`{ name: '${name}', prefix: '${pfx}', tags: [${tags}] }`)
8081
})
81-
} else {
82+
}
83+
else {
8284
if (!name.startsWith('la.la')) {
8385
icons.push(`{ name: '${name}', prefix: '---', tags: [] }`)
8486
}

ui/build/icons/build.material-icons-base.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ function run (googleIcons, theme) {
9999
return "'" + tag + "'"
100100
}).join(', ')
101101
icons.push(`{ name: '${name}', tags: [${tags}] }`)
102-
} else {
102+
}
103+
else {
103104
icons.push(`{ name: '${name}', tags: [] }`)
104105
}
105106
}

ui/build/icons/build.mdi-v4.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ fileContents
6464
return "'" + tag + "'"
6565
}).join(', ')
6666
icons.push(`{ name: '${line}', tags: [${tags}] }`)
67-
} else {
67+
}
68+
else {
6869
icons.push(`{ name: '${line}', tags: [] }`)
6970
}
7071
}

ui/build/icons/build.mdi-v5.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ fileContents
6464
return "'" + tag + "'"
6565
}).join(', ')
6666
icons.push(`{ name: '${line}', tags: [${tags}] }`)
67-
} else {
67+
}
68+
else {
6869
icons.push(`{ name: '${line}', tags: [] }`)
6970
}
7071
}

0 commit comments

Comments
 (0)