Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default defineConfig([
],
// We use [] as default props.
'react-x/no-unstable-default-props': 'off',
curly: ['error', 'all'],
},
},
{
Expand Down
4 changes: 3 additions & 1 deletion src/generators/web/utils/css.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export default () => {
*/
buildEnd() {
// If no CSS chunks were processed, skip emitting
if (cssChunks.size === 0) return;
if (cssChunks.size === 0) {
return;
}

// Concatenate all collected CSS strings and emit as a build asset
this.emitFile({
Expand Down
4 changes: 3 additions & 1 deletion src/threading/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export default class WorkerPool {
processQueue(threads) {
if (this.queue.length > 0 && this.getActiveThreadCount() < threads) {
const next = this.queue.shift();
if (next) next();
if (next) {
next();
}
}
}
}
Loading