|
1 | 1 | ---
|
2 | 2 | source: crates/oxc_linter/src/tester.rs
|
3 | 3 | ---
|
4 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 4 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
5 | 5 | ╭─[no_null.tsx:1:13]
|
6 | 6 | 1 │ const foo = null
|
7 | 7 | · ────
|
8 | 8 | ╰────
|
9 |
| - help: Replace the `null` literal with `undefined`. |
| 9 | + help: Replace `null` with `undefined`. |
10 | 10 |
|
11 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 11 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
12 | 12 | ╭─[no_null.tsx:1:5]
|
13 | 13 | 1 │ foo(null)
|
14 | 14 | · ────
|
15 | 15 | ╰────
|
16 |
| - help: Replace the `null` literal with `undefined`. |
| 16 | + help: Replace `null` with `undefined`. |
17 | 17 |
|
18 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 18 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
19 | 19 | ╭─[no_null.tsx:1:12]
|
20 | 20 | 1 │ if (foo == null) {}
|
21 | 21 | · ────
|
22 | 22 | ╰────
|
23 |
| - help: Replace the `null` literal with `undefined`. |
| 23 | + help: Replace `null` with `undefined`. |
24 | 24 |
|
25 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 25 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
26 | 26 | ╭─[no_null.tsx:1:12]
|
27 | 27 | 1 │ if (foo != null) {}
|
28 | 28 | · ────
|
29 | 29 | ╰────
|
30 |
| - help: Replace the `null` literal with `undefined`. |
| 30 | + help: Replace `null` with `undefined`. |
31 | 31 |
|
32 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 32 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
33 | 33 | ╭─[no_null.tsx:1:5]
|
34 | 34 | 1 │ if (null == foo) {}
|
35 | 35 | · ────
|
36 | 36 | ╰────
|
37 |
| - help: Replace the `null` literal with `undefined`. |
| 37 | + help: Replace `null` with `undefined`. |
38 | 38 |
|
39 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 39 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
40 | 40 | ╭─[no_null.tsx:1:5]
|
41 | 41 | 1 │ if (null != foo) {}
|
42 | 42 | · ────
|
43 | 43 | ╰────
|
44 |
| - help: Replace the `null` literal with `undefined`. |
| 44 | + help: Replace `null` with `undefined`. |
45 | 45 |
|
46 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 46 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
47 | 47 | ╭─[no_null.tsx:2:20]
|
48 | 48 | 1 │ function foo() {
|
49 | 49 | 2 │ return null;
|
50 | 50 | · ────
|
51 | 51 | 3 │ }
|
52 | 52 | ╰────
|
53 |
| - help: Remove the `null` literal. |
| 53 | + help: Delete this code. |
54 | 54 |
|
55 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 55 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
56 | 56 | ╭─[no_null.tsx:1:11]
|
57 | 57 | 1 │ let foo = null;
|
58 | 58 | · ────
|
59 | 59 | ╰────
|
60 |
| - help: Remove the `null` literal. |
| 60 | + help: Delete this code. |
61 | 61 |
|
62 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 62 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
63 | 63 | ╭─[no_null.tsx:1:11]
|
64 | 64 | 1 │ var foo = null;
|
65 | 65 | · ────
|
66 | 66 | ╰────
|
67 |
| - help: Remove the `null` literal. |
| 67 | + help: Delete this code. |
68 | 68 |
|
69 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 69 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
70 | 70 | ╭─[no_null.tsx:1:20]
|
71 | 71 | 1 │ var foo = 1, bar = null, baz = 2;
|
72 | 72 | · ────
|
73 | 73 | ╰────
|
74 |
| - help: Remove the `null` literal. |
| 74 | + help: Delete this code. |
75 | 75 |
|
76 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 76 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
77 | 77 | ╭─[no_null.tsx:1:13]
|
78 | 78 | 1 │ const foo = null;
|
79 | 79 | · ────
|
80 | 80 | ╰────
|
81 |
| - help: Replace the `null` literal with `undefined`. |
| 81 | + help: Replace `null` with `undefined`. |
82 | 82 |
|
83 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 83 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
84 | 84 | ╭─[no_null.tsx:1:13]
|
85 | 85 | 1 │ if (foo === null) {}
|
86 | 86 | · ────
|
87 | 87 | ╰────
|
88 |
| - help: Replace the `null` literal with `undefined`. |
| 88 | + help: Replace `null` with `undefined`. |
89 | 89 |
|
90 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 90 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
91 | 91 | ╭─[no_null.tsx:1:5]
|
92 | 92 | 1 │ if (null === foo) {}
|
93 | 93 | · ────
|
94 | 94 | ╰────
|
95 |
| - help: Replace the `null` literal with `undefined`. |
| 95 | + help: Replace `null` with `undefined`. |
96 | 96 |
|
97 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 97 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
98 | 98 | ╭─[no_null.tsx:1:13]
|
99 | 99 | 1 │ if (foo !== null) {}
|
100 | 100 | · ────
|
101 | 101 | ╰────
|
102 |
| - help: Replace the `null` literal with `undefined`. |
| 102 | + help: Replace `null` with `undefined`. |
103 | 103 |
|
104 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 104 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
105 | 105 | ╭─[no_null.tsx:1:5]
|
106 | 106 | 1 │ if (null !== foo) {}
|
107 | 107 | · ────
|
108 | 108 | ╰────
|
109 |
| - help: Replace the `null` literal with `undefined`. |
| 109 | + help: Replace `null` with `undefined`. |
110 | 110 |
|
111 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 111 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
112 | 112 | ╭─[no_null.tsx:1:19]
|
113 | 113 | 1 │ new Object.create(null)
|
114 | 114 | · ────
|
115 | 115 | ╰────
|
116 |
| - help: Replace the `null` literal with `undefined`. |
| 116 | + help: Replace `null` with `undefined`. |
117 | 117 |
|
118 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 118 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
119 | 119 | ╭─[no_null.tsx:1:27]
|
120 | 120 | 1 │ new foo.insertBefore(bar, null)
|
121 | 121 | · ────
|
122 | 122 | ╰────
|
123 |
| - help: Replace the `null` literal with `undefined`. |
| 123 | + help: Replace `null` with `undefined`. |
124 | 124 |
|
125 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 125 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
126 | 126 | ╭─[no_null.tsx:1:8]
|
127 | 127 | 1 │ create(null)
|
128 | 128 | · ────
|
129 | 129 | ╰────
|
130 |
| - help: Replace the `null` literal with `undefined`. |
| 130 | + help: Replace `null` with `undefined`. |
131 | 131 |
|
132 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 132 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
133 | 133 | ╭─[no_null.tsx:1:19]
|
134 | 134 | 1 │ insertBefore(bar, null)
|
135 | 135 | · ────
|
136 | 136 | ╰────
|
137 |
| - help: Replace the `null` literal with `undefined`. |
| 137 | + help: Replace `null` with `undefined`. |
138 | 138 |
|
139 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 139 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
140 | 140 | ╭─[no_null.tsx:1:18]
|
141 | 141 | 1 │ Object['create'](null)
|
142 | 142 | · ────
|
143 | 143 | ╰────
|
144 |
| - help: Replace the `null` literal with `undefined`. |
| 144 | + help: Replace `null` with `undefined`. |
145 | 145 |
|
146 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 146 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
147 | 147 | ╭─[no_null.tsx:1:26]
|
148 | 148 | 1 │ foo['insertBefore'](bar, null)
|
149 | 149 | · ────
|
150 | 150 | ╰────
|
151 |
| - help: Replace the `null` literal with `undefined`. |
| 151 | + help: Replace `null` with `undefined`. |
152 | 152 |
|
153 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 153 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
154 | 154 | ╭─[no_null.tsx:1:16]
|
155 | 155 | 1 │ Object[create](null)
|
156 | 156 | · ────
|
157 | 157 | ╰────
|
158 |
| - help: Replace the `null` literal with `undefined`. |
| 158 | + help: Replace `null` with `undefined`. |
159 | 159 |
|
160 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 160 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
161 | 161 | ╭─[no_null.tsx:1:24]
|
162 | 162 | 1 │ foo[insertBefore](bar, null)
|
163 | 163 | · ────
|
164 | 164 | ╰────
|
165 |
| - help: Replace the `null` literal with `undefined`. |
| 165 | + help: Replace `null` with `undefined`. |
166 | 166 |
|
167 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 167 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
168 | 168 | ╭─[no_null.tsx:1:8]
|
169 | 169 | 1 │ Object[null](null)
|
170 | 170 | · ────
|
171 | 171 | ╰────
|
172 |
| - help: Replace the `null` literal with `undefined`. |
| 172 | + help: Replace `null` with `undefined`. |
173 | 173 |
|
174 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 174 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
175 | 175 | ╭─[no_null.tsx:1:14]
|
176 | 176 | 1 │ Object[null](null)
|
177 | 177 | · ────
|
178 | 178 | ╰────
|
179 |
| - help: Replace the `null` literal with `undefined`. |
| 179 | + help: Replace `null` with `undefined`. |
180 | 180 |
|
181 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 181 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
182 | 182 | ╭─[no_null.tsx:1:18]
|
183 | 183 | 1 │ Object.notCreate(null)
|
184 | 184 | · ────
|
185 | 185 | ╰────
|
186 |
| - help: Replace the `null` literal with `undefined`. |
| 186 | + help: Replace `null` with `undefined`. |
187 | 187 |
|
188 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 188 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
189 | 189 | ╭─[no_null.tsx:1:26]
|
190 | 190 | 1 │ foo.notInsertBefore(foo, null)
|
191 | 191 | · ────
|
192 | 192 | ╰────
|
193 |
| - help: Replace the `null` literal with `undefined`. |
| 193 | + help: Replace `null` with `undefined`. |
194 | 194 |
|
195 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 195 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
196 | 196 | ╭─[no_null.tsx:1:18]
|
197 | 197 | 1 │ NotObject.create(null)
|
198 | 198 | · ────
|
199 | 199 | ╰────
|
200 |
| - help: Replace the `null` literal with `undefined`. |
| 200 | + help: Replace `null` with `undefined`. |
201 | 201 |
|
202 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 202 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
203 | 203 | ╭─[no_null.tsx:1:19]
|
204 | 204 | 1 │ lib.Object.create(null)
|
205 | 205 | · ────
|
206 | 206 | ╰────
|
207 |
| - help: Replace the `null` literal with `undefined`. |
| 207 | + help: Replace `null` with `undefined`. |
208 | 208 |
|
209 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 209 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
210 | 210 | ╭─[no_null.tsx:1:19]
|
211 | 211 | 1 │ Object.create(...[null])
|
212 | 212 | · ────
|
213 | 213 | ╰────
|
214 |
| - help: Replace the `null` literal with `undefined`. |
| 214 | + help: Replace `null` with `undefined`. |
215 | 215 |
|
216 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 216 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
217 | 217 | ╭─[no_null.tsx:1:15]
|
218 | 218 | 1 │ Object.create(null, bar, extraArgument)
|
219 | 219 | · ────
|
220 | 220 | ╰────
|
221 |
| - help: Replace the `null` literal with `undefined`. |
| 221 | + help: Replace `null` with `undefined`. |
222 | 222 |
|
223 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 223 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
224 | 224 | ╭─[no_null.tsx:1:18]
|
225 | 225 | 1 │ foo.insertBefore(null)
|
226 | 226 | · ────
|
227 | 227 | ╰────
|
228 |
| - help: Replace the `null` literal with `undefined`. |
| 228 | + help: Replace `null` with `undefined`. |
229 | 229 |
|
230 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 230 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
231 | 231 | ╭─[no_null.tsx:1:23]
|
232 | 232 | 1 │ foo.insertBefore(foo, null, bar)
|
233 | 233 | · ────
|
234 | 234 | ╰────
|
235 |
| - help: Replace the `null` literal with `undefined`. |
| 235 | + help: Replace `null` with `undefined`. |
236 | 236 |
|
237 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 237 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
238 | 238 | ╭─[no_null.tsx:1:28]
|
239 | 239 | 1 │ foo.insertBefore(...[foo], null)
|
240 | 240 | · ────
|
241 | 241 | ╰────
|
242 |
| - help: Replace the `null` literal with `undefined`. |
| 242 | + help: Replace `null` with `undefined`. |
243 | 243 |
|
244 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 244 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
245 | 245 | ╭─[no_null.tsx:1:18]
|
246 | 246 | 1 │ foo.insertBefore(null, bar)
|
247 | 247 | · ────
|
248 | 248 | ╰────
|
249 |
| - help: Replace the `null` literal with `undefined`. |
| 249 | + help: Replace `null` with `undefined`. |
250 | 250 |
|
251 |
| - ⚠ eslint-plugin-unicorn(no-null): Disallow the use of the `null` literal |
| 251 | + ⚠ eslint-plugin-unicorn(no-null): Do not use `null` literals |
252 | 252 | ╭─[no_null.tsx:1:20]
|
253 | 253 | 1 │ Object.create(bar, null)
|
254 | 254 | · ────
|
255 | 255 | ╰────
|
256 |
| - help: Replace the `null` literal with `undefined`. |
| 256 | + help: Replace `null` with `undefined`. |
0 commit comments