Problem/Motivation

The repository contains npm scripts to test JavaScript coding standards, but the code currently does not pass the defined standards.

Proposed resolution

Fix the reported JavaScript coding standards errors.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
StatusFileSize
new14.86 KB

Attached patch fixes the reported JavaScript coding standards errors.

idebr’s picture

StatusFileSize
new300 bytes
new15.2 KB

Interesting enough, the testbot still return the error Javascript coding standards error without any feedback of what errors. Let's see if this helps.

idebr’s picture

Filed #3054010: ESLint halt-on-fail does not provide any feedback on what failed to find out what is triggering the Javascript coding standards error message on the testbot.

idebr’s picture

StatusFileSize
new679 bytes
new12.29 KB
new1.09 KB

Let's try this.

idebr’s picture

StatusFileSize
new0 bytes
idebr’s picture

StatusFileSize
new707 bytes
idebr’s picture

StatusFileSize
new707 bytes
new12.41 KB

This seems to do the job.

fhaeberle’s picture

Status: Needs review » Needs work

drupalci.yml

    testing:
      container_command:
        commands:
         - "cd ${SOURCE_DIR}/themes/contrib/claro && sudo -u www-data yarn install"
         - "cd ${SOURCE_DIR}/themes/contrib/claro && sudo -u www-data yarn run lint:css"
         - "cd ${SOURCE_DIR}/themes/contrib/claro && sudo -u www-data yarn run lint:js"
         - "cd ${SOURCE_DIR}/themes/contrib/claro && sudo -u www-data yarn run lint:js"

I think the last line is too much :)

Everything else looks good. Thank you!

quiron’s picture

Status: Needs work » Needs review
Issue tags: +DevDaysCluj
StatusFileSize
new532 bytes
new12.32 KB

Moving it forward.

idebr’s picture

Status: Needs review » Reviewed & tested by the community

@quiron Thanks!

  • lauriii committed 6152840 on 8.x-1.x
    Issue #3053987 by idebr, quiron, fhaeberle: Fix JavaScript coding...
lauriii’s picture

Status: Reviewed & tested by the community » Fixed

Looks good! Thank you everyone!

rosinegrean’s picture

Issue tags: -DevDaysCluj +DevDaysTransylvania

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.