zap-hud
zap-hud copied to clipboard
Fix some lint warnings
Fixes part of #608, covered the lint warnings for the following rules:
- no-unused-vars
- prefer-destructuring
- unicorn/no-for-loop
- unicorn/prefer-includes
- unicorn/prefer-string-slice
- unicorn/prefer-query-selector
- no-negated-condition
Signed-off-by: Vitika9 [email protected]
@psiinon
- For
no-negated-condition
do we need to change!someBool
tosomeBool == false
? - Do we really need to use
unicorn/filename-case
and change almost all the file names (just confirming before I make changes)? - Please let me know if I should squash all the commits into one.
Thanks!
All seems sane to me.
Please help me with my questions.
Sorry, missed this question :(
- Re
no-negated-condition
no, I dont think so - see https://eslint.org/docs/latest/rules/no-negated-condition - I'm fine not addressing
unicorn/filename-case
at this stage, its one of the less important ones imo - Please squash the commits into one
Re the test failure - thats unfortunately expected so we can ignore that.
Have you tried testing the HUD manually with these changes? It loads for me but then none of the controls work :/ Click on the HUD buttons on ther left and right - no dialogs are shown.