github-copilot-resources / copilot-metrics-viewer

Tool to visualize the Copilot metrics provided via the Copilot Business Metrics API (current in public beta)
https://copilot-metrics-viewer-gthcc5cmd9ebf2ff.westeurope-01.azurewebsites.net/
MIT License
265 stars 127 forks source link

Fix for lint errors and a typo #1

Closed parroty closed 7 months ago

parroty commented 8 months ago

Hi 👋 . They're very minor ones, but I just noticed them while playing with the application 🙇

Typo

Instrucions to Instructions

Lint Errors

Before

$ npm run lint
/xxx/copilot-metrics-viewer/src/api/GitHubApi.ts
  23:48  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

/xxx/copilot-metrics-viewer/src/components/MetricsViewer.vue
  85:71  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  88:86  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  91:57  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  94:73  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

/xxx/copilot-metrics-viewer/src/components/RawDataViewer.vue
  32:29  warning  'ref' is defined but never used           @typescript-eslint/no-unused-vars
  53:33  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

/xxx/copilot-metrics-viewer/src/model/Language.ts
  10:21  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

/xxx/copilot-metrics-viewer/src/model/MetricsData.ts
  10:23  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  30:23  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any
  37:50  warning  Unexpected any. Specify a different type  @typescript-eslint/no-explicit-any

✖ 11 problems (0 errors, 11 warnings)

After

$ npm run lint
DONE  No lint errors found!