Skip to content

Commit 1e5cd7c

Browse files
committed
fix
1 parent 82d2f0b commit 1e5cd7c

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

test-projects/gts/result.txt

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,46 @@ error: Non-translated string used (ember-template-lint/no-bare-strings) at src/c
8888
42 | </:options>
8989

9090

91+
error: Unsafe assignment of an `any` value (@typescript-eslint/no-unsafe-assignment) at src/destructure-to-array.gts:5:11:
92+
3 | export class DeconstructArray extends Component<unknown> {
93+
4 | testFunction = async () => {
94+
> 5 | const [, ...remaining] = await Promise.all([1, 2, 3]);
95+
| ^
96+
6 | return remaining;
97+
7 | }
98+
8 |
99+
100+
101+
error: Unsafe call of an `any` typed value (@typescript-eslint/no-unsafe-call) at src/destructure-to-array.gts:5:36:
102+
3 | export class DeconstructArray extends Component<unknown> {
103+
4 | testFunction = async () => {
104+
> 5 | const [, ...remaining] = await Promise.all([1, 2, 3]);
105+
| ^
106+
6 | return remaining;
107+
7 | }
108+
8 |
109+
110+
111+
error: Unsafe member access .all on an `any` value (@typescript-eslint/no-unsafe-member-access) at src/destructure-to-array.gts:5:44:
112+
3 | export class DeconstructArray extends Component<unknown> {
113+
4 | testFunction = async () => {
114+
> 5 | const [, ...remaining] = await Promise.all([1, 2, 3]);
115+
| ^
116+
6 | return remaining;
117+
7 | }
118+
8 |
119+
120+
121+
error: Unsafe return of an `any` typed value (@typescript-eslint/no-unsafe-return) at src/destructure-to-array.gts:6:5:
122+
4 | testFunction = async () => {
123+
5 | const [, ...remaining] = await Promise.all([1, 2, 3]);
124+
> 6 | return remaining;
125+
| ^
126+
7 | }
127+
8 |
128+
9 | <template>
129+
130+
91131
error: Non-translated string used (ember-template-lint/no-bare-strings) at src/destructure-to-array.gts:9:13:
92132
7 | }
93133
8 |
@@ -168,4 +208,4 @@ error: Non-translated string used (ember-template-lint/no-bare-strings) at src/p
168208
14 |
169209

170210

171-
17 errors found.
211+
21 errors found.

0 commit comments

Comments
 (0)