|
1 | 1 | --- |
2 | 2 | source: crates/oxc_linter/src/tester.rs |
3 | 3 | --- |
4 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
| 4 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
5 | 5 | ╭─[valid_expect.tsx:1:1] |
6 | 6 | 1 │ expect().toBe(2); |
7 | 7 | · ──────── |
8 | 8 | ╰──── |
9 | | - help: Remove the extra arguments. |
| 9 | + help: Add the missing arguments. |
10 | 10 |
|
11 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
| 11 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
12 | 12 | ╭─[valid_expect.tsx:1:1] |
13 | 13 | 1 │ expect().toBe(true); |
14 | 14 | · ──────── |
15 | 15 | ╰──── |
16 | | - help: Remove the extra arguments. |
| 16 | + help: Add the missing arguments. |
17 | 17 |
|
18 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
| 18 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
19 | 19 | ╭─[valid_expect.tsx:1:1] |
20 | 20 | 1 │ expect().toEqual('something'); |
21 | 21 | · ──────── |
22 | 22 | ╰──── |
23 | | - help: Remove the extra arguments. |
| 23 | + help: Add the missing arguments. |
24 | 24 |
|
25 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
| 25 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
26 | 26 | ╭─[valid_expect.tsx:1:1] |
27 | 27 | 1 │ expect('something', 'else').toEqual('something'); |
28 | 28 | · ─────────────────────────── |
29 | 29 | ╰──── |
30 | | - help: Add the missing arguments. |
| 30 | + help: Remove the extra arguments. |
31 | 31 |
|
32 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
| 32 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
33 | 33 | ╭─[valid_expect.tsx:1:1] |
34 | 34 | 1 │ expect('something', 'else', 'entirely').toEqual('something'); |
35 | 35 | · ─────────────────────────────────────── |
36 | 36 | ╰──── |
37 | | - help: Add the missing arguments. |
| 37 | + help: Remove the extra arguments. |
38 | 38 |
|
39 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
| 39 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
40 | 40 | ╭─[valid_expect.tsx:1:1] |
41 | 41 | 1 │ expect('something', 'else', 'entirely').toEqual('something'); |
42 | 42 | · ─────────────────────────────────────── |
43 | 43 | ╰──── |
44 | | - help: Add the missing arguments. |
| 44 | + help: Remove the extra arguments. |
45 | 45 |
|
46 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
| 46 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
47 | 47 | ╭─[valid_expect.tsx:1:1] |
48 | 48 | 1 │ expect('something', 'else', 'entirely').toEqual('something'); |
49 | 49 | · ─────────────────────────────────────── |
50 | 50 | ╰──── |
51 | | - help: Add the missing arguments. |
| 51 | + help: Remove the extra arguments. |
52 | 52 |
|
53 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
| 53 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
54 | 54 | ╭─[valid_expect.tsx:1:1] |
55 | 55 | 1 │ expect('something').toEqual('something'); |
56 | 56 | · ─────────────────── |
57 | 57 | ╰──── |
58 | | - help: Remove the extra arguments. |
| 58 | + help: Add the missing arguments. |
59 | 59 |
|
60 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 3 arguments |
| 60 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
61 | 61 | ╭─[valid_expect.tsx:1:1] |
62 | 62 | 1 │ expect('something', 'else').toEqual('something'); |
63 | 63 | · ─────────────────────────── |
@@ -498,63 +498,63 @@ source: crates/oxc_linter/src/tester.rs |
498 | 498 | ╰──── |
499 | 499 | help: Did you forget add a matcher(e.g. `toBe`, `toBeDefined`) |
500 | 500 |
|
501 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
| 501 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
502 | 502 | ╭─[valid_expect.tsx:1:1] |
503 | 503 | 1 │ expect().toBe(2); |
504 | 504 | · ──────── |
505 | 505 | ╰──── |
506 | | - help: Remove the extra arguments. |
| 506 | + help: Add the missing arguments. |
507 | 507 |
|
508 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
| 508 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
509 | 509 | ╭─[valid_expect.tsx:1:1] |
510 | 510 | 1 │ expect().toBe(true); |
511 | 511 | · ──────── |
512 | 512 | ╰──── |
513 | | - help: Remove the extra arguments. |
| 513 | + help: Add the missing arguments. |
514 | 514 |
|
515 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
| 515 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
516 | 516 | ╭─[valid_expect.tsx:1:1] |
517 | 517 | 1 │ expect().toEqual("something"); |
518 | 518 | · ──────── |
519 | 519 | ╰──── |
520 | | - help: Remove the extra arguments. |
| 520 | + help: Add the missing arguments. |
521 | 521 |
|
522 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 1 argument |
| 522 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
523 | 523 | ╭─[valid_expect.tsx:1:1] |
524 | 524 | 1 │ expect("something", "else").toEqual("something"); |
525 | 525 | · ─────────────────────────── |
526 | 526 | ╰──── |
527 | | - help: Add the missing arguments. |
| 527 | + help: Remove the extra arguments. |
528 | 528 |
|
529 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
| 529 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
530 | 530 | ╭─[valid_expect.tsx:1:1] |
531 | 531 | 1 │ expect("something", "else", "entirely").toEqual("something"); |
532 | 532 | · ─────────────────────────────────────── |
533 | 533 | ╰──── |
534 | | - help: Add the missing arguments. |
| 534 | + help: Remove the extra arguments. |
535 | 535 |
|
536 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
| 536 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
537 | 537 | ╭─[valid_expect.tsx:1:1] |
538 | 538 | 1 │ expect("something", "else", "entirely").toEqual("something"); |
539 | 539 | · ─────────────────────────────────────── |
540 | 540 | ╰──── |
541 | | - help: Add the missing arguments. |
| 541 | + help: Remove the extra arguments. |
542 | 542 |
|
543 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
| 543 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
544 | 544 | ╭─[valid_expect.tsx:1:1] |
545 | 545 | 1 │ expect("something", "else", "entirely").toEqual("something"); |
546 | 546 | · ─────────────────────────────────────── |
547 | 547 | ╰──── |
548 | | - help: Add the missing arguments. |
| 548 | + help: Remove the extra arguments. |
549 | 549 |
|
550 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 2 arguments |
| 550 | + ⚠ eslint-plugin-vitest(valid-expect): Expect requires at least 2 arguments |
551 | 551 | ╭─[valid_expect.tsx:1:1] |
552 | 552 | 1 │ expect("something").toEqual("something"); |
553 | 553 | · ─────────────────── |
554 | 554 | ╰──── |
555 | | - help: Remove the extra arguments. |
| 555 | + help: Add the missing arguments. |
556 | 556 |
|
557 | | - ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 3 arguments |
| 557 | + ⚠ eslint-plugin-vitest(valid-expect): Expect takes at most 1 argument |
558 | 558 | ╭─[valid_expect.tsx:1:1] |
559 | 559 | 1 │ expect("something", "else").toEqual("something"); |
560 | 560 | · ─────────────────────────── |
|
0 commit comments