🎨(frontend) Minor refactoring

- improve condition statements
- add "no-var" rule in eslint
- remove some unnecessary variables

Signed-off-by: Zorin95670 <moittie.vincent@gmail.com>
This commit is contained in:
Zorin95670
2025-05-07 12:04:08 +02:00
committed by Anthony LC
parent e5f029ad1d
commit 4d541c5d52
10 changed files with 11 additions and 26 deletions

View File

@@ -48,10 +48,7 @@ const nextConfig = {
swDest: '../public/service-worker.js',
include: [
({ asset }) => {
if (asset.name.match(/.*(static).*/)) {
return true;
}
return false;
return !!asset.name.match(/.*(static).*/);
},
],
}),