@@ -6,151 +6,151 @@ source: crates/oxc_linter/src/tester.rs
66 1 │ throw Error ()
77 · ───────
88 ╰────
9- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
9+ help : Using ` new` ensures the error is correctly initialized .
1010
1111 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
1212 ╭─[throw_new_error .tsx :1 :7 ]
1313 1 │ throw (Error )()
1414 · ─────────
1515 ╰────
16- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
16+ help : Using ` new` ensures the error is correctly initialized .
1717
1818 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
1919 ╭─[throw_new_error .tsx :1 :7 ]
2020 1 │ throw lib .Error ()
2121 · ───────────
2222 ╰────
23- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
23+ help : Using ` new` ensures the error is correctly initialized .
2424
2525 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
2626 ╭─[throw_new_error .tsx :1 :7 ]
2727 1 │ throw lib .mod .Error ()
2828 · ───────────────
2929 ╰────
30- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
30+ help : Using ` new` ensures the error is correctly initialized .
3131
3232 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
3333 ╭─[throw_new_error .tsx :1 :7 ]
3434 1 │ throw lib [mod ].Error ()
3535 · ────────────────
3636 ╰────
37- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
37+ help : Using ` new` ensures the error is correctly initialized .
3838
3939 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
4040 ╭─[throw_new_error .tsx :1 :7 ]
4141 1 │ throw (lib .mod ).Error ()
4242 · ─────────────────
4343 ╰────
44- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
44+ help : Using ` new` ensures the error is correctly initialized .
4545
4646 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
4747 ╭─[throw_new_error .tsx :1 :7 ]
4848 1 │ throw Error (' foo' )
4949 · ────────────
5050 ╰────
51- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
51+ help : Using ` new` ensures the error is correctly initialized .
5252
5353 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
5454 ╭─[throw_new_error .tsx :1 :7 ]
5555 1 │ throw CustomError (' foo' )
5656 · ──────────────────
5757 ╰────
58- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
58+ help : Using ` new` ensures the error is correctly initialized .
5959
6060 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
6161 ╭─[throw_new_error .tsx :1 :7 ]
6262 1 │ throw FooBarBazError (' foo' )
6363 · ─────────────────────
6464 ╰────
65- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
65+ help : Using ` new` ensures the error is correctly initialized .
6666
6767 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
6868 ╭─[throw_new_error .tsx :1 :7 ]
6969 1 │ throw ABCError (' foo' )
7070 · ───────────────
7171 ╰────
72- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
72+ help : Using ` new` ensures the error is correctly initialized .
7373
7474 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
7575 ╭─[throw_new_error .tsx :1 :7 ]
7676 1 │ throw Abc3Error (' foo' )
7777 · ────────────────
7878 ╰────
79- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
79+ help : Using ` new` ensures the error is correctly initialized .
8080
8181 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
8282 ╭─[throw_new_error .tsx :1 :7 ]
8383 1 │ throw TypeError ()
8484 · ───────────
8585 ╰────
86- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
86+ help : Using ` new` ensures the error is correctly initialized .
8787
8888 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
8989 ╭─[throw_new_error .tsx :1 :7 ]
9090 1 │ throw EvalError ()
9191 · ───────────
9292 ╰────
93- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
93+ help : Using ` new` ensures the error is correctly initialized .
9494
9595 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
9696 ╭─[throw_new_error .tsx :1 :7 ]
9797 1 │ throw RangeError ()
9898 · ────────────
9999 ╰────
100- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
100+ help : Using ` new` ensures the error is correctly initialized .
101101
102102 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
103103 ╭─[throw_new_error .tsx :1 :7 ]
104104 1 │ throw ReferenceError ()
105105 · ────────────────
106106 ╰────
107- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
107+ help : Using ` new` ensures the error is correctly initialized .
108108
109109 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
110110 ╭─[throw_new_error .tsx :1 :7 ]
111111 1 │ throw SyntaxError ()
112112 · ─────────────
113113 ╰────
114- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
114+ help : Using ` new` ensures the error is correctly initialized .
115115
116116 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
117117 ╭─[throw_new_error .tsx :1 :7 ]
118118 1 │ throw URIError ()
119119 · ──────────
120120 ╰────
121- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
121+ help : Using ` new` ensures the error is correctly initialized .
122122
123123 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
124124 ╭─[throw_new_error .tsx :1 :10 ]
125125 1 │ throw (( URIError () ))
126126 · ──────────
127127 ╰────
128- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
128+ help : Using ` new` ensures the error is correctly initialized .
129129
130130 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
131131 ╭─[throw_new_error .tsx :1 :7 ]
132132 1 │ throw (( URIError ))()
133133 · ────────────────
134134 ╰────
135- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
135+ help : Using ` new` ensures the error is correctly initialized .
136136
137137 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
138138 ╭─[throw_new_error .tsx :1 :7 ]
139139 1 │ throw getGlobalThis ().Error ()
140140 · ───────────────────────
141141 ╰────
142- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
142+ help : Using ` new` ensures the error is correctly initialized .
143143
144144 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
145145 ╭─[throw_new_error .tsx :1 :7 ]
146146 1 │ throw utils .getGlobalThis ().Error ()
147147 · ─────────────────────────────
148148 ╰────
149- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
149+ help : Using ` new` ensures the error is correctly initialized .
150150
151151 ⚠ eslint - plugin - unicorn (throw - new -error ): Require ` new` when throwing an error .
152152 ╭─[throw_new_error .tsx :1 :7 ]
153153 1 │ throw (( getGlobalThis ().Error ))()
154154 · ─────────────────────────────
155155 ╰────
156- help : While it ' s possible to create a new error without using the `new` keyword, it ' s better to be explicit .
156+ help : Using ` new` ensures the error is correctly initialized .
0 commit comments