epfl-si / elements

Charte graphique Web EPFL
https://epfl-si.github.io/elements
22 stars 12 forks source link

Clean JS for Search #698

Closed williambelle closed 8 months ago

williambelle commented 11 months ago
williambelle commented 11 months ago
./node_modules/.bin/eslint assets/components/molecules/search

   5:36  error    Unexpected function expression                                                                 prefer-arrow-callback
   5:36  warning  Unexpected unnamed function                                                                    func-names
   5:45  error    'event' is defined but never used                                                              no-unused-vars
   5:51  error    Missing space before opening brace                                                             space-before-blocks
   7:5   error    Unexpected var, use let or const instead                                                       no-var
   8:5   error    Unexpected var, use let or const instead                                                       no-var
  13:9   error    There should be no space after this paren                                                      space-in-parens
  13:42  error    There should be no space before this paren                                                     space-in-parens
  19:35  error    Unexpected function expression                                                                 prefer-arrow-callback
  19:35  warning  Unexpected unnamed function                                                                    func-names
  19:44  error    'event' is defined but never used                                                              no-unused-vars
  19:50  error    Missing space before opening brace                                                             space-before-blocks
  21:5   error    Unexpected var, use let or const instead                                                       no-var
  22:5   error    Unexpected var, use let or const instead                                                       no-var
  22:9   error    'searchField' is assigned a value but never used. Allowed unused vars must match /[uU]nused/u  no-unused-vars

✖ 15 problems (13 errors, 2 warnings)
  10 errors and 0 warnings potentially fixable with the `--fix` option.
github-actions[bot] commented 11 months ago

Unit Test Results

267 tests   267 :heavy_check_mark:  0s :stopwatch:     1 suites      0 :zzz:     1 files        0 :x:

Results for commit 5cec7320.

github-actions[bot] commented 11 months ago

🔎 Download the Backstop report for this pull request (link valid for 90 days):