Skip to content

Add ESLint linting and other refactoring #21

Add ESLint linting and other refactoring

Add ESLint linting and other refactoring #21

Triggered via pull request October 28, 2023 13:07
Status Failure
Total duration 41s
Artifacts

ci.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

72 errors
src/components/FormField.vue#L18
[@typescript-eslint/no-unsafe-return] Unsafe return of an `any` typed value.
src/stores/user.store.ts#L176
[no-restricted-syntax] for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.
src/components/FormField.vue#L22
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .map on an `any` value.
src/stores/user.store.ts#L176
[guard-for-in] The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype.
src/components/FormField.vue#L22
[@typescript-eslint/no-unsafe-call] Unsafe call of an `any` typed value.
src/components/FormField.vue#L22
[array-callback-return] Array.prototype.map() expects a return value from arrow function.
src/stores/user.store.ts#L177
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/components/FormField.vue#L23
[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `String`.
src/stores/user.store.ts#L183
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
src/components/FormField.vue#L23
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .$params on an `any` value.
src/stores/user.store.ts#L184
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/components/FormField.vue#L23
[@typescript-eslint/no-unsafe-member-access] Computed name [e.$params.type] resolves to an any value.
src/stores/user.store.ts#L184
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
src/components/LoginForm.vue#L80
[vuejs-accessibility/click-events-have-key-events] Visible, non-interactive elements with click handlers must have at least one keyboard listener.
src/stores/user.store.ts#L185
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
src/stores/content.store.ts#L2
[import/no-extraneous-dependencies] 'markdown-it' should be listed in the project's dependencies, not devDependencies.
src/stores/content.store.ts#L3
[import/no-extraneous-dependencies] 'markdown-it-class' should be listed in the project's dependencies, not devDependencies.
src/stores/user.store.ts#L186
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/content.store.ts#L16
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L186
[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `string`.
src/stores/content.store.ts#L16
[@typescript-eslint/no-unsafe-call] Unsafe construction of an any type value.
src/stores/user.store.ts#L186
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .response on an `any` value.
src/stores/content.store.ts#L23
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .use on an `any` value.
src/stores/user.store.ts#L187
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .user on an `any` value.
src/stores/content.store.ts#L23
[@typescript-eslint/no-unsafe-call] Unsafe call of an `any` typed value.
src/stores/user.store.ts#L188
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/content.store.ts#L32
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/content.store.ts#L32
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .render on an `any` value.
src/stores/user.store.ts#L188
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
src/stores/user.store.ts#L188
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L188
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .user on an `any` value.
src/stores/content.store.ts#L32
[@typescript-eslint/no-unsafe-call] Unsafe call of an `any` typed value.
src/stores/user.store.ts#L190
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/content.store.ts#L42
[@typescript-eslint/no-unsafe-return] Unsafe return of an `any` typed value.
src/stores/content.store.ts#L42
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .renderInline on an `any` value.
src/stores/content.store.ts#L42
[@typescript-eslint/no-unsafe-call] Unsafe call of an `any` typed value.
src/stores/user.store.ts#L68
[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.
src/stores/user.store.ts#L88
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L90
[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.
src/stores/user.store.ts#L91
[@typescript-eslint/no-floating-promises] Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.
src/stores/user.store.ts#L95
[@typescript-eslint/no-floating-promises] Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.
src/stores/user.store.ts#L190
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
src/stores/user.store.ts#L97
[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.
src/stores/user.store.ts#L190
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L99
[@typescript-eslint/no-shadow] 'user' is already declared in the upper scope on line 16 column 9.
src/stores/user.store.ts#L190
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .password on an `any` value.
src/stores/user.store.ts#L105
[@typescript-eslint/no-floating-promises] Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.
src/views/Home.vue#L17
[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `number[]`.
src/stores/user.store.ts#L129
[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.
src/views/Me.vue#L20
[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `String`.
src/stores/user.store.ts#L130
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .length on an `any` value.
src/stores/user.store.ts#L132
[no-await-in-loop] Unexpected `await` inside a loop.
src/stores/user.store.ts#L132
[@typescript-eslint/restrict-template-expressions] Invalid type "any" of template literal expression.
src/stores/user.store.ts#L132
[@typescript-eslint/no-unsafe-member-access] Unsafe member access [i] on an `any` value.
src/stores/user.store.ts#L134
[no-await-in-loop] Unexpected `await` inside a loop.
src/stores/user.store.ts#L134
[@typescript-eslint/restrict-template-expressions] Invalid type "any" of template literal expression.
src/stores/user.store.ts#L134
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .team on an `any` value.
src/stores/user.store.ts#L135
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L135
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .team on an `any` value.
src/stores/user.store.ts#L137
[no-await-in-loop] Unexpected `await` inside a loop.
src/stores/user.store.ts#L137
[@typescript-eslint/restrict-template-expressions] Invalid type "any" of template literal expression.
src/stores/user.store.ts#L137
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .tournament on an `any` value.
src/stores/user.store.ts#L138
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L138
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .team on an `any` value.
src/stores/user.store.ts#L141
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .payment_status on an `any` value.
src/stores/user.store.ts#L142
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
src/stores/user.store.ts#L142
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .team on an `any` value.
src/stores/user.store.ts#L142
[@typescript-eslint/no-unsafe-member-access] Computed name [inscription_details.data.team.id] resolves to an any value.
src/stores/user.store.ts#L145
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .tournament on an `any` value.
src/stores/user.store.ts#L146
[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `never`.
src/stores/user.store.ts#L148
[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `never`.
build
Process completed with exit code 1.