imfile-io / imfile-desktop

A full-featured download manager.
https://imfile.io
MIT License
1.71k stars 39 forks source link

correct code styles to conform to the ESLint rules #120

Closed Zh40Le1ZOOB closed 2 months ago

Zh40Le1ZOOB commented 2 months ago

Description

Some incorrect code styles will cause errors when build:

    ERROR in [eslint] 1337;CurrentDir=/build/source
      ✘  http://eslint.org/docs/rules/no-trailing-spaces   Trailing spaces not allowed         
      src/renderer/components/Task/TaskItem.vue:37:1

      ✘  http://eslint.org/docs/rules/keyword-spacing      Expected space(s) after "if"        
      src/renderer/components/Task/TaskList.vue:56:9

      ✘  http://eslint.org/docs/rules/space-before-blocks  Missing space before opening brace  
      src/renderer/components/Task/TaskList.vue:56:42

    ✘ 3 problems (3 errors, 0 warnings)

So I corrected code following ESLint rules that provided in the error output.

Checklist: