Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-142933

Format source complains about arrow functions in downloadSpreadsheetUtils.js

Details

    Description

      Steps to reproduce

      1. Run ant format-source in master branch

      Expected behavior

      There's no complaint about content-dashboard module

      Current behavior

      The following error is shown in the console output:

      [exec] > Task :packageRunFormat
           [exec] yarn run v1.13.0
           [exec] $ liferay-npm-scripts fix
           [exec] Generating types (1 of 10): @liferay/frontend-js-state-web
           [exec] Generating types (2 of 10): @liferay/frontend-js-react-web
           [exec] Generating types (3 of 10): data-engine-taglib
           [exec] Generating types (4 of 10): dynamic-data-mapping-form-field-type
           [exec] Generating types (5 of 10): dynamic-data-mapping-form-web
           [exec] Generating types (6 of 10): @liferay/frontend-js-a11y-web
           [exec] Generating types (7 of 10): frontend-js-tooltip-support-web
           [exec] Generating types (8 of 10): item-selector-taglib
           [exec] Generating types (9 of 10): @liferay/object-web
           [exec] Generating types (10 of 10): remote-app-client-js
           [exec] /home/thecleydyr/liferay/source/liferay-portal/modules/apps/content-dashboard/content-dashboard-web/src/main/resources/META-INF/resources/js/utils/downloadSpreadsheetUtils.js
           [exec]   17:1  error  Use named function for export instead of arrow function. Example: 'function fooBar() {}'  @liferay/no-anonymous-exports
           [exec]   28:1  error  Use named function for export instead of arrow function. Example: 'function fooBar() {}'  @liferay/no-anonymous-exports
           [exec] 
           [exec] ✖ 2 problems (2 errors, 0 warnings)
      
      

      Attachments

        Activity

          People

            beltran.rengifo Beltran Rengifo
            cleydyr.albuquerque Cleydyr Albuquerque (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Cleydyr Albuquerque Cleydyr Albuquerque (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              37 weeks, 1 day ago

              Packages

                Version Package
                7.4.3.18 CE GA18
                Master