Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1980] Standardise Array Style for Frontend Files #2084

Merged
merged 12 commits into from
Jan 31, 2024
9 changes: 8 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@
}
],
"@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"
}
]
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
} from 'vue-router';
import Home from '../views/c-home.vue';

const routes: Array<RouteRecordRaw> = [
const routes: RouteRecordRaw[] = [
{
path: '/',
component: Home,
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/utils/segment.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export default class Segment {
knownAuthor: string | null;

lineNumbers: Array<number>;
lineNumbers: number[];

lines: Array<string>;
lines: string[];

constructor(knownAuthor: string | null, lineNumbers: Array<number>, lines: Array<string>) {
constructor(knownAuthor: string | null, lineNumbers: number[], lines: string[]) {
this.knownAuthor = knownAuthor;
this.lineNumbers = lineNumbers;
this.lines = lines;
Expand Down
Loading