File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -198,19 +198,20 @@ const tests = {
198
198
{
199
199
code : `
200
200
import { forwardRef } from 'react'
201
- forwardRef(function (props) {
201
+ const Component = forwardRef(function (props) {
202
202
return null;
203
203
});
204
204
` ,
205
205
errors : [
206
206
{
207
- message : 'forwardRef is used with this component but no ref parameter is set' ,
207
+ message :
208
+ 'forwardRef is used with this component but no ref parameter is set' ,
208
209
suggestions : [
209
210
{
210
211
messageId : 'addRefParameter' ,
211
212
output : `
212
213
import { forwardRef } from 'react'
213
- forwardRef(function (props, ref) {
214
+ const Component = forwardRef(function (props, ref) {
214
215
return null;
215
216
});
216
217
` ,
@@ -219,7 +220,7 @@ const tests = {
219
220
messageId : 'removeForwardRef' ,
220
221
output : `
221
222
import { forwardRef } from 'react'
222
- function (props) {
223
+ const Component = function (props) {
223
224
return null;
224
225
};
225
226
` ,
You can’t perform that action at this time.
0 commit comments