diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index 9b52391b50..7899f4ecf6 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -78,7 +78,26 @@ } ], "@typescript-eslint/member-delimiter-style": "error", - "@typescript-eslint/type-annotation-spacing": "error" + "@typescript-eslint/type-annotation-spacing": "error", + "@typescript-eslint/array-type": [ + "error", + { + "default": "array-simple", + "readonly": "array-simple" + } + ] + } + }, + { + "files": ["*.vue"], + "rules": { + "@typescript-eslint/array-type": [ + "error", + { + "default": "generic", + "readonly": "generic" + } + ] } } ] diff --git a/frontend/src/app.vue b/frontend/src/app.vue index b167450c7c..24651b6390 100644 --- a/frontend/src/app.vue +++ b/frontend/src/app.vue @@ -41,7 +41,7 @@ const app = defineComponent({ data() { return { repos: {} as { [key: string]: Repo }, - users: [] as Repo[], + users: [] as Array, userUpdated: false, loadingOverlayOpacity: 1, @@ -132,7 +132,7 @@ const app = defineComponent({ } }, getUsers() { - const full: Repo[] = []; + const full: Array = []; Object.keys(this.repos).forEach((repo) => { if (this.repos[repo].users) { full.push(this.repos[repo]); diff --git a/frontend/src/components/c-ramp.vue b/frontend/src/components/c-ramp.vue index 6367fc7932..55e130d7ec 100644 --- a/frontend/src/components/c-ramp.vue +++ b/frontend/src/components/c-ramp.vue @@ -149,7 +149,7 @@ export default defineComponent({ ...dailyCommit, commitResults: dailyCommit.commitResults.map((commitResult) => ({ ...commitResult, isOpen: true })), }), - ) as Commit[]; + ) as Array; const info = { zRepo: user.repoName, diff --git a/frontend/src/components/c-stacked-bar-chart.vue b/frontend/src/components/c-stacked-bar-chart.vue index 56a3398f55..4825aae309 100644 --- a/frontend/src/components/c-stacked-bar-chart.vue +++ b/frontend/src/components/c-stacked-bar-chart.vue @@ -9,13 +9,13 @@