Add ESLint linting and other refactoring #24
Annotations
58 errors
src/components/FormField.vue#L18
[@typescript-eslint/no-unsafe-return] Unsafe return of an `any` typed value.
|
src/components/FormField.vue#L22
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .map on an `any` value.
|
src/stores/user.store.ts#L188
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
|
src/components/FormField.vue#L22
[@typescript-eslint/no-unsafe-call] Unsafe call of an `any` typed value.
|
src/stores/user.store.ts#L188
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .user on an `any` value.
|
src/stores/user.store.ts#L190
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
|
src/components/FormField.vue#L22
[array-callback-return] Array.prototype.map() expects a return value from arrow function.
|
src/stores/user.store.ts#L190
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on 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/components/FormField.vue#L23
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .$params on an `any` value.
|
src/stores/user.store.ts#L190
[@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#L190
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .password on an `any` value.
|
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#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#L97
[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.
|
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#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/stores/user.store.ts#L129
[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.
|
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`.
|
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/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/stores/user.store.ts#L177
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
|
src/stores/user.store.ts#L183
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
|
src/stores/user.store.ts#L184
[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.
|
src/stores/user.store.ts#L184
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
|
src/stores/user.store.ts#L185
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.
|
src/stores/user.store.ts#L186
[@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/user.store.ts#L186
[@typescript-eslint/no-unsafe-member-access] Unsafe member access .response 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/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 .status on an `any` value.
|
build
Process completed with exit code 1.
|