Skip to content

Commit

Permalink
Remove unnecessary ESLint disable comments in build command
Browse files Browse the repository at this point in the history
1aron committed Nov 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 632548d commit 2143bba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/techor/src/commands/build.ts
Original file line number Diff line number Diff line change
@@ -78,7 +78,6 @@ export default async function build() {
log.i`Cleaned up **${config.build.output.dir}**`
}

// eslint-disable-next-line no-inner-declarations
function addBuild(entries: string | string[], rollupOutputOptions: RollupOutputOptions) {
if (Array.isArray(entries)) {
entries = entries.map((eachEntry) => normalize(eachEntry))
@@ -269,7 +268,6 @@ export default async function build() {
throw new Error('Not implemented for assets.')
case 'chunk':
chunks.push(eachOutputResult.artifact)
// eslint-disable-next-line no-case-declarations
colSizes[1] = Math.max(colSizes[1] || 0, resolveFilename(eachOutputResult).length)
colSizes[2] = Math.max(colSizes[2] || 0, eachOutputResult.output.format.length)
colSizes[3] = Math.max(colSizes[3] || 0, prettyBytes(eachOutputResult.artifact.code.length, { space: false }).length)

0 comments on commit 2143bba

Please sign in to comment.