Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-1739

Change npm/yarn lint script to only call lint

    • False
    • Hide

      None

      Show
      None
    • False
    • OCM Core Sprint 253

      Currently, in the scripts section, calling yarn lint actually calls `eslint && prettier` which is fine, but that prevents a user from adding `–fix` to the linter.  So, let's clean things up to be more obvious to the user:
      "lint": "eslint src scripts 'run/*js' --ext mjs,js,jsx,ts,tsx && yarn prettier",
      --> "lint": "eslint src scripts 'run/*js' --ext mjs,js,jsx,ts,tsx"
      (new) "lint-prettier":"eslint src scripts 'run/*js' --ext mjs,js,jsx,ts,tsx && yarn prettier",

      Then the .gitlab-cy.yml file needs to be updated to call (on line 112) yarn lintprettier.

      A.C.:

      • lint script will only call lint
      • lint-prettier will call both

              zherman Zac Herman
              zherman Zac Herman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: