|
9 | 9 | const foo = bar.foo`,
|
10 | 10 | output: $`
|
11 | 11 | const { foo } = bar`,
|
12 |
| - errors: ['command-removal', 'command-fix'], |
| 12 | + errors: ['command-fix'], |
13 | 13 | },
|
14 | 14 | {
|
15 | 15 | code: $`
|
16 | 16 | /// to-destructuring
|
17 | 17 | const baz = bar.foo`,
|
18 | 18 | output: $`
|
19 | 19 | const { foo: baz } = bar`,
|
20 |
| - errors: ['command-removal', 'command-fix'], |
| 20 | + errors: ['command-fix'], |
21 | 21 | },
|
22 | 22 | {
|
23 | 23 | code: $`
|
24 | 24 | /// to-destructuring
|
25 | 25 | const foo = bar?.foo`,
|
26 | 26 | output: $`
|
27 | 27 | const { foo } = bar ?? {}`,
|
28 |
| - errors: ['command-removal', 'command-fix'], |
| 28 | + errors: ['command-fix'], |
29 | 29 | },
|
30 | 30 | {
|
31 | 31 | code: $`
|
32 | 32 | /// to-destructuring
|
33 | 33 | const foo = bar[1]`,
|
34 | 34 | output: $`
|
35 | 35 | const [,foo] = bar`,
|
36 |
| - errors: ['command-removal', 'command-fix'], |
| 36 | + errors: ['command-fix'], |
37 | 37 | },
|
38 | 38 | {
|
39 | 39 | code: $`
|
40 | 40 | /// to-destructuring
|
41 | 41 | const foo = bar?.[0]`,
|
42 | 42 | output: $`
|
43 | 43 | const [foo] = bar ?? []`,
|
44 |
| - errors: ['command-removal', 'command-fix'], |
| 44 | + errors: ['command-fix'], |
45 | 45 | },
|
46 | 46 | {
|
47 | 47 | code: $`
|
48 | 48 | /// to-destructuring
|
49 | 49 | const foo = bar().foo`,
|
50 | 50 | output: $`
|
51 | 51 | const { foo } = bar()`,
|
52 |
| - errors: ['command-removal', 'command-fix'], |
| 52 | + errors: ['command-fix'], |
53 | 53 | },
|
54 | 54 | {
|
55 | 55 | code: $`
|
56 | 56 | /// to-destructuring
|
57 | 57 | const foo = bar()?.foo`,
|
58 | 58 | output: $`
|
59 | 59 | const { foo } = bar() ?? {}`,
|
60 |
| - errors: ['command-removal', 'command-fix'], |
| 60 | + errors: ['command-fix'], |
61 | 61 | },
|
62 | 62 | {
|
63 | 63 | code: $`
|
64 | 64 | /// to-destructuring
|
65 | 65 | foo = bar.foo`,
|
66 | 66 | output: $`
|
67 | 67 | ;({ foo } = bar)`,
|
68 |
| - errors: ['command-removal', 'command-fix'], |
| 68 | + errors: ['command-fix'], |
69 | 69 | },
|
70 | 70 | {
|
71 | 71 | code: $`
|
72 | 72 | /// to-destructuring
|
73 | 73 | baz = bar.foo`,
|
74 | 74 | output: $`
|
75 | 75 | ;({ foo: baz } = bar)`,
|
76 |
| - errors: ['command-removal', 'command-fix'], |
| 76 | + errors: ['command-fix'], |
77 | 77 | },
|
78 | 78 | {
|
79 | 79 | code: $`
|
80 | 80 | /// to-destructuring
|
81 | 81 | foo = bar[0]`,
|
82 | 82 | output: $`
|
83 | 83 | ;([foo] = bar)`,
|
84 |
| - errors: ['command-removal', 'command-fix'], |
| 84 | + errors: ['command-fix'], |
85 | 85 | },
|
86 | 86 | {
|
87 | 87 | code: $`
|
88 | 88 | /// to-destructuring
|
89 | 89 | foo = bar().foo`,
|
90 | 90 | output: $`
|
91 | 91 | ;({ foo } = bar())`,
|
92 |
| - errors: ['command-removal', 'command-fix'], |
| 92 | + errors: ['command-fix'], |
93 | 93 | },
|
94 | 94 | {
|
95 | 95 | code: $`
|
96 | 96 | /// to-destructuring
|
97 | 97 | baz = bar().foo`,
|
98 | 98 | output: $`
|
99 | 99 | ;({ foo: baz } = bar())`,
|
100 |
| - errors: ['command-removal', 'command-fix'], |
| 100 | + errors: ['command-fix'], |
101 | 101 | },
|
102 | 102 | )
|
0 commit comments