Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-11042

Plugin template has linter warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.13
    • Management Console
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      The tests we've added to the plugins repo have introduced linter warnings. We should address these warnings since we want new projects based off the repo to lint cleanly. We should also make sure the linter is running as part of CI.

      cc jhadvig@redhat.com cajieh 

       

      ❯ yarn run lint
      yarn run v1.22.17
      $ eslint ./src ./integration-tests --fix &&  stylelint "src/*/.css" --allow-empty-input --fix/Users/sam/work/plugin-template/integration-tests/support/index.ts
        5:26  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any/Users/sam/work/plugin-template/integration-tests/support/login.ts
        28:28  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
        48:26  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any/Users/sam/work/plugin-template/integration-tests/tests/example-page.cy.ts
        14:19  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
        27:19  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any✖ 5 problems (0 errors, 5 warnings)✨  Done in 1.75s.

            jhadvig@redhat.com Jakub Hadvig
            spadgett@redhat.com Samuel Padgett
            YaDan Pei YaDan Pei
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: