🎨(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

@@ -56,6 +56,7 @@ const globalRules = {
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'no-var': 'error',
'react/jsx-curly-brace-presence': [
'error',
{ props: 'never', children: 'never', propElementValues: 'always' },