|
1 | 1 | --- |
2 | 2 | source: crates/oxc_linter/src/tester.rs |
3 | 3 | --- |
4 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'in' operator |
| 4 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'in' operator. |
5 | 5 | ╭─[no_unsafe_negation.tsx:1:1] |
6 | 6 | 1 │ !a in b |
7 | 7 | · ── |
8 | 8 | ╰──── |
9 | 9 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'in' |
10 | 10 |
|
11 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'in' operator |
| 11 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'in' operator. |
12 | 12 | ╭─[no_unsafe_negation.tsx:1:2] |
13 | 13 | 1 │ (!a in b) |
14 | 14 | · ── |
15 | 15 | ╰──── |
16 | 16 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'in' |
17 | 17 |
|
18 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'in' operator |
| 18 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'in' operator. |
19 | 19 | ╭─[no_unsafe_negation.tsx:1:1] |
20 | 20 | 1 │ !(a) in b |
21 | 21 | · ──── |
22 | 22 | ╰──── |
23 | 23 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'in' |
24 | 24 |
|
25 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'instanceof' operator |
| 25 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'instanceof' operator. |
26 | 26 | ╭─[no_unsafe_negation.tsx:1:1] |
27 | 27 | 1 │ !a instanceof b |
28 | 28 | · ── |
29 | 29 | ╰──── |
30 | 30 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'instanceof' |
31 | 31 |
|
32 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'instanceof' operator |
| 32 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'instanceof' operator. |
33 | 33 | ╭─[no_unsafe_negation.tsx:1:2] |
34 | 34 | 1 │ (!a instanceof b) |
35 | 35 | · ── |
36 | 36 | ╰──── |
37 | 37 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'instanceof' |
38 | 38 |
|
39 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'instanceof' operator |
| 39 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'instanceof' operator. |
40 | 40 | ╭─[no_unsafe_negation.tsx:1:1] |
41 | 41 | 1 │ !(a) instanceof b |
42 | 42 | · ──── |
43 | 43 | ╰──── |
44 | 44 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'instanceof' |
45 | 45 |
|
46 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of 'in' operator |
| 46 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of 'in' operator. |
47 | 47 | ╭─[no_unsafe_negation.tsx:1:9] |
48 | 48 | 1 │ (y=>{if(!/s/ in(l)){}}) |
49 | 49 | · ──── |
50 | 50 | ╰──── |
51 | 51 | help: Use `()` to negate the whole expression, as '!' binds more closely than 'in' |
52 | 52 |
|
53 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of '<' operator |
| 53 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of '<' operator. |
54 | 54 | ╭─[no_unsafe_negation.tsx:1:5] |
55 | 55 | 1 │ if (! a < b) {} |
56 | 56 | · ─── |
57 | 57 | ╰──── |
58 | 58 | help: Use `()` to negate the whole expression, as '!' binds more closely than '<' |
59 | 59 |
|
60 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of '>' operator |
| 60 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of '>' operator. |
61 | 61 | ╭─[no_unsafe_negation.tsx:1:8] |
62 | 62 | 1 │ while (! a > b) {} |
63 | 63 | · ─── |
64 | 64 | ╰──── |
65 | 65 | help: Use `()` to negate the whole expression, as '!' binds more closely than '>' |
66 | 66 |
|
67 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of '<=' operator |
| 67 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of '<=' operator. |
68 | 68 | ╭─[no_unsafe_negation.tsx:1:7] |
69 | 69 | 1 │ foo = ! a <= b; |
70 | 70 | · ─── |
71 | 71 | ╰──── |
72 | 72 | help: Use `()` to negate the whole expression, as '!' binds more closely than '<=' |
73 | 73 |
|
74 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of '>=' operator |
| 74 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of '>=' operator. |
75 | 75 | ╭─[no_unsafe_negation.tsx:1:7] |
76 | 76 | 1 │ foo = ! a >= b; |
77 | 77 | · ─── |
78 | 78 | ╰──── |
79 | 79 | help: Use `()` to negate the whole expression, as '!' binds more closely than '>=' |
80 | 80 |
|
81 | | - ⚠ eslint(no-unsafe-negation): Unexpected negating the left operand of '<=' operator |
| 81 | + ⚠ eslint(no-unsafe-negation): Unexpected negation of the left operand of '<=' operator. |
82 | 82 | ╭─[no_unsafe_negation.tsx:1:1] |
83 | 83 | 1 │ ! a <= b |
84 | 84 | · ─── |
|
0 commit comments