Skip to content

Add ESLint linting and other refactoring #23

Add ESLint linting and other refactoring

Add ESLint linting and other refactoring #23

GitHub Actions / ESLint Report Analysis failed Oct 28, 2023 in 1s

ESLint Report Analysis

58 ESLint error(s) and 0 ESLint warning(s) found in pull request changed files.
0 ESLint error(s) and 0 ESLint warning(s) found in files outside of the pull request.

Details

Pull Request Changed Files ESLint Results:

58 ESLint error(s) and 0 ESLint warning(s) found

58 Error(s):

src/components/FormField.vue line 18

  • Start Line: 18
  • End Line: 18
  • Message: Unsafe return of an any typed value.
    • From: [@typescript-eslint/no-unsafe-return]

src/components/FormField.vue line 22

  • Start Line: 22
  • End Line: 22
  • Message: Unsafe member access .map on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/components/FormField.vue line 22

  • Start Line: 22
  • End Line: 22
  • Message: Unsafe call of an any typed value.
    • From: [@typescript-eslint/no-unsafe-call]

src/components/FormField.vue line 22

  • Start Line: 22
  • End Line: 22
  • Message: Array.prototype.map() expects a return value from arrow function.
    • From: [array-callback-return]

src/components/FormField.vue line 23

  • Start Line: 23
  • End Line: 23
  • Message: Unsafe argument of type any assigned to a parameter of type String.
    • From: [@typescript-eslint/no-unsafe-argument]

src/components/FormField.vue line 23

  • Start Line: 23
  • End Line: 23
  • Message: Unsafe member access .$params on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/components/FormField.vue line 23

  • Start Line: 23
  • End Line: 23
  • Message: Computed name [e.$params.type] resolves to an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/content.store.ts line 23

  • Start Line: 23
  • End Line: 23
  • Message: Unsafe argument of type any assigned to a parameter of type PluginWithOptions<{ h1: string; h2: string; }>.
    • From: [@typescript-eslint/no-unsafe-argument]

src/stores/user.store.ts line 68

  • Start Line: 68
  • End Line: 68
  • Message: Invalid type "String" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 88

  • Start Line: 88
  • End Line: 88
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 90

  • Start Line: 90
  • End Line: 90
  • Message: Invalid type "String" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 91

  • Start Line: 91
  • End Line: 91
  • Message: 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.
    • From: [@typescript-eslint/no-floating-promises]

src/stores/user.store.ts line 95

  • Start Line: 95
  • End Line: 95
  • Message: 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.
    • From: [@typescript-eslint/no-floating-promises]

src/stores/user.store.ts line 97

  • Start Line: 97
  • End Line: 97
  • Message: Invalid type "String" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 99

  • Start Line: 99
  • End Line: 99
  • Message: 'user' is already declared in the upper scope on line 16 column 9.
    • From: [@typescript-eslint/no-shadow]

src/stores/user.store.ts line 105

  • Start Line: 105
  • End Line: 105
  • Message: 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.
    • From: [@typescript-eslint/no-floating-promises]

src/stores/user.store.ts line 129

  • Start Line: 129
  • End Line: 129
  • Message: Invalid type "String" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 130

  • Start Line: 130
  • End Line: 130
  • Message: Unsafe member access .length on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 132

  • Start Line: 132
  • End Line: 132
  • Message: Unexpected await inside a loop.
    • From: [no-await-in-loop]

src/stores/user.store.ts line 132

  • Start Line: 132
  • End Line: 132
  • Message: Invalid type "any" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 132

  • Start Line: 132
  • End Line: 132
  • Message: Unsafe member access [i] on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 134

  • Start Line: 134
  • End Line: 134
  • Message: Unexpected await inside a loop.
    • From: [no-await-in-loop]

src/stores/user.store.ts line 134

  • Start Line: 134
  • End Line: 134
  • Message: Invalid type "any" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 134

  • Start Line: 134
  • End Line: 134
  • Message: Unsafe member access .team on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 135

  • Start Line: 135
  • End Line: 135
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 135

  • Start Line: 135
  • End Line: 135
  • Message: Unsafe member access .team on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 137

  • Start Line: 137
  • End Line: 137
  • Message: Unexpected await inside a loop.
    • From: [no-await-in-loop]

src/stores/user.store.ts line 137

  • Start Line: 137
  • End Line: 137
  • Message: Invalid type "any" of template literal expression.
    • From: [@typescript-eslint/restrict-template-expressions]

src/stores/user.store.ts line 137

  • Start Line: 137
  • End Line: 137
  • Message: Unsafe member access .tournament on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 138

  • Start Line: 138
  • End Line: 138
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 138

  • Start Line: 138
  • End Line: 138
  • Message: Unsafe member access .team on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 141

  • Start Line: 141
  • End Line: 141
  • Message: Unsafe member access .payment_status on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 142

  • Start Line: 142
  • End Line: 142
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 142

  • Start Line: 142
  • End Line: 142
  • Message: Unsafe member access .team on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 142

  • Start Line: 142
  • End Line: 142
  • Message: Computed name [inscription_details.data.team.id] resolves to an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 145

  • Start Line: 145
  • End Line: 145
  • Message: Unsafe member access .tournament on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 146

  • Start Line: 146
  • End Line: 146
  • Message: Unsafe argument of type any assigned to a parameter of type never.
    • From: [@typescript-eslint/no-unsafe-argument]

src/stores/user.store.ts line 148

  • Start Line: 148
  • End Line: 148
  • Message: Unsafe argument of type any assigned to a parameter of type never.
    • From: [@typescript-eslint/no-unsafe-argument]

src/stores/user.store.ts line 176

  • Start Line: 176
  • End Line: 178
  • Message: 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.
    • From: [no-restricted-syntax]

src/stores/user.store.ts line 176

  • Start Line: 176
  • End Line: 178
  • Message: The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype.
    • From: [guard-for-in]

src/stores/user.store.ts line 177

  • Start Line: 177
  • End Line: 177
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 183

  • Start Line: 183
  • End Line: 183
  • Message: Unsafe member access .status on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 184

  • Start Line: 184
  • End Line: 184
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 184

  • Start Line: 184
  • End Line: 184
  • Message: Unsafe member access .status on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 185

  • Start Line: 185
  • End Line: 185
  • Message: Unsafe member access .status on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 186

  • Start Line: 186
  • End Line: 186
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 186

  • Start Line: 186
  • End Line: 186
  • Message: Unsafe argument of type any assigned to a parameter of type string.
    • From: [@typescript-eslint/no-unsafe-argument]

src/stores/user.store.ts line 186

  • Start Line: 186
  • End Line: 186
  • Message: Unsafe member access .response on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 187

  • Start Line: 187
  • End Line: 187
  • Message: Unsafe member access .user on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 188

  • Start Line: 188
  • End Line: 188
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 188

  • Start Line: 188
  • End Line: 188
  • Message: Unsafe member access .status on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 188

  • Start Line: 188
  • End Line: 188
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 188

  • Start Line: 188
  • End Line: 188
  • Message: Unsafe member access .user on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 190

  • Start Line: 190
  • End Line: 190
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 190

  • Start Line: 190
  • End Line: 190
  • Message: Unsafe member access .status on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/stores/user.store.ts line 190

  • Start Line: 190
  • End Line: 190
  • Message: Unsafe assignment of an any value.
    • From: [@typescript-eslint/no-unsafe-assignment]

src/stores/user.store.ts line 190

  • Start Line: 190
  • End Line: 190
  • Message: Unsafe member access .password on an any value.
    • From: [@typescript-eslint/no-unsafe-member-access]

src/views/Home.vue line 17

  • Start Line: 17
  • End Line: 17
  • Message: Unsafe argument of type any assigned to a parameter of type number[].
    • From: [@typescript-eslint/no-unsafe-argument]

Non-Pull Request Changed Files ESLint Results:

0 ESLint error(s) and 0 ESLint warning(s) found

Annotations

Check failure on line 188 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L188

[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.

Check failure on line 188 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L188

[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.

Check failure on line 18 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L18

[@typescript-eslint/no-unsafe-return] Unsafe return of an `any` typed value.

Check failure on line 188 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L188

[@typescript-eslint/no-unsafe-member-access] Unsafe member access .user on an `any` value.

Check failure on line 22 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L22

[@typescript-eslint/no-unsafe-member-access] Unsafe member access .map on an `any` value.

Check failure on line 190 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L190

[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.

Check failure on line 22 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L22

[@typescript-eslint/no-unsafe-call] Unsafe call of an `any` typed value.

Check failure on line 190 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L190

[@typescript-eslint/no-unsafe-member-access] Unsafe member access .status on an `any` value.

Check failure on line 22 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L22

[array-callback-return] Array.prototype.map() expects a return value from arrow function.

Check failure on line 190 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L190

[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.

Check failure on line 23 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L23

[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `String`.

Check failure on line 190 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L190

[@typescript-eslint/no-unsafe-member-access] Unsafe member access .password on an `any` value.

Check failure on line 23 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L23

[@typescript-eslint/no-unsafe-member-access] Unsafe member access .$params on an `any` value.

Check failure on line 17 in src/views/Home.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/views/Home.vue#L17

[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `number[]`.

Check failure on line 23 in src/components/FormField.vue

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/components/FormField.vue#L23

[@typescript-eslint/no-unsafe-member-access] Computed name [e.$params.type] resolves to an any value.

Check failure on line 23 in src/stores/content.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/content.store.ts#L23

[@typescript-eslint/no-unsafe-argument] Unsafe argument of type `any` assigned to a parameter of type `PluginWithOptions<{ h1: string; h2: string; }>`.

Check failure on line 68 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L68

[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.

Check failure on line 88 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L88

[@typescript-eslint/no-unsafe-assignment] Unsafe assignment of an `any` value.

Check failure on line 90 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L90

[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.

Check failure on line 91 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

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.

Check failure on line 95 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

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.

Check failure on line 97 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L97

[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.

Check failure on line 99 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L99

[@typescript-eslint/no-shadow] 'user' is already declared in the upper scope on line 16 column 9.

Check failure on line 105 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

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.

Check failure on line 129 in src/stores/user.store.ts

See this annotation in the file changed.

@github-actions github-actions / ESLint Report Analysis

src/stores/user.store.ts#L129

[@typescript-eslint/restrict-template-expressions] Invalid type "String" of template literal expression.