Skip to content

Commit 904b9da

Browse files
authored
chore: eslint force curly braces (#430)
1 parent 682b503 commit 904b9da

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default defineConfig([
5050
],
5151
// We use [] as default props.
5252
'react-x/no-unstable-default-props': 'off',
53+
curly: ['error', 'all'],
5354
},
5455
},
5556
{

src/generators/web/utils/css.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ export default () => {
9090
*/
9191
buildEnd() {
9292
// If no CSS chunks were processed, skip emitting
93-
if (cssChunks.size === 0) return;
93+
if (cssChunks.size === 0) {
94+
return;
95+
}
9496

9597
// Concatenate all collected CSS strings and emit as a build asset
9698
this.emitFile({

src/threading/index.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ export default class WorkerPool {
8686
processQueue(threads) {
8787
if (this.queue.length > 0 && this.getActiveThreadCount() < threads) {
8888
const next = this.queue.shift();
89-
if (next) next();
89+
if (next) {
90+
next();
91+
}
9092
}
9193
}
9294
}

0 commit comments

Comments
 (0)