Skip to content

Commit

Permalink
Remove unnecessary ESLint disable comments in build command
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Nov 25, 2024
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
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2143bba

Please sign in to comment.