@@ -270,54 +270,54 @@ ruleTester.run('no-multi-comp', rule, {
270
270
const ComponentOne = () => <></>;
271
271
const ComponentTwo = () => <></>;
272
272
` ,
273
- options : [ { exportOnly : true } ] ,
273
+ options : [ { ignorePrivate : true } ] ,
274
274
} ,
275
275
{
276
276
code : `
277
277
export const ComponentOne = () => <></>;
278
278
const ComponentTwo = () => <></>;
279
279
` ,
280
- options : [ { exportOnly : true } ] ,
280
+ options : [ { ignorePrivate : true } ] ,
281
281
} ,
282
282
{
283
283
code : `
284
284
const ComponentOne = () => <></>;
285
285
const ComponentTwo = () => <></>;
286
286
module.exports = { ComponentOne };
287
287
` ,
288
- options : [ { exportOnly : true } ] ,
288
+ options : [ { ignorePrivate : true } ] ,
289
289
} ,
290
290
{
291
291
code : `
292
292
const ComponentOne = () => <></>;
293
293
const ComponentTwo = () => <></>;
294
294
export default ComponentOne;
295
295
` ,
296
- options : [ { exportOnly : true } ] ,
296
+ options : [ { ignorePrivate : true } ] ,
297
297
} ,
298
298
{
299
299
code : `
300
300
function ComponentOne() { return <></> };
301
301
const ComponentTwo = () => <></>;
302
302
export default ComponentOne;
303
303
` ,
304
- options : [ { exportOnly : true } ] ,
304
+ options : [ { ignorePrivate : true } ] ,
305
305
} ,
306
306
{
307
307
code : `
308
308
function ComponentOne() { return <></> };
309
309
function ComponentTwo() { return <></> };
310
310
export default ComponentOne;
311
311
` ,
312
- options : [ { exportOnly : true } ] ,
312
+ options : [ { ignorePrivate : true } ] ,
313
313
} ,
314
314
{
315
315
code : `
316
316
import React, {Component} from "react";
317
317
export class ComponentOne extends Component() { render() { return <></>; }};
318
318
function ComponentTwo() { return <></> };
319
319
` ,
320
- options : [ { exportOnly : true } ] ,
320
+ options : [ { ignorePrivate : true } ] ,
321
321
} ,
322
322
{
323
323
code : `
@@ -326,46 +326,46 @@ ruleTester.run('no-multi-comp', rule, {
326
326
function ComponentTwo() { return <></> };
327
327
export default ComponentOne;
328
328
` ,
329
- options : [ { exportOnly : true } ] ,
329
+ options : [ { ignorePrivate : true } ] ,
330
330
} ,
331
331
{
332
332
code : `
333
333
const ComponentOne = () => <></>;
334
334
const ComponentTwo = () => <></>;
335
335
export { ComponentOne };
336
336
` ,
337
- options : [ { exportOnly : true } ] ,
337
+ options : [ { ignorePrivate : true } ] ,
338
338
} ,
339
339
{
340
340
code : `
341
341
export function ComponentOne() { return <></>; }
342
342
function ComponentTwo() { return <></>; }
343
343
` ,
344
- options : [ { exportOnly : true } ] ,
344
+ options : [ { ignorePrivate : true } ] ,
345
345
} ,
346
346
{
347
347
code : `
348
348
const ComponentOne = () => <></>;
349
349
const ComponentTwo = () => <></>;
350
350
module.exports = ComponentOne;
351
351
` ,
352
- options : [ { exportOnly : true } ] ,
352
+ options : [ { ignorePrivate : true } ] ,
353
353
} ,
354
354
{
355
355
code : `
356
356
const ComponentOne = () => <></>;
357
357
const ComponentTwo = () => <></>;
358
358
export default function() { return <ComponentOne />; }
359
359
` ,
360
- options : [ { exportOnly : true } ] ,
360
+ options : [ { ignorePrivate : true } ] ,
361
361
} ,
362
362
{
363
363
code : `
364
364
function ComponentOne() { return <></>; }
365
365
const ComponentTwo = () => <></>;
366
366
export { ComponentOne as default };
367
367
` ,
368
- options : [ { exportOnly : true } ] ,
368
+ options : [ { ignorePrivate : true } ] ,
369
369
} ,
370
370
{
371
371
code : `
@@ -377,7 +377,7 @@ ruleTester.run('no-multi-comp', rule, {
377
377
render() { return <></>; }
378
378
}
379
379
` ,
380
- options : [ { exportOnly : true } ] ,
380
+ options : [ { ignorePrivate : true } ] ,
381
381
} ,
382
382
{
383
383
code : `
@@ -390,7 +390,7 @@ ruleTester.run('no-multi-comp', rule, {
390
390
}
391
391
export { ComponentOne };
392
392
` ,
393
- options : [ { exportOnly : true } ] ,
393
+ options : [ { ignorePrivate : true } ] ,
394
394
} ,
395
395
{
396
396
code : `
@@ -399,15 +399,15 @@ ruleTester.run('no-multi-comp', rule, {
399
399
const ComponentTwo = () => <></>;
400
400
export default ComponentOne;
401
401
` ,
402
- options : [ { exportOnly : true } ] ,
402
+ options : [ { ignorePrivate : true } ] ,
403
403
} ,
404
404
{
405
405
code : `
406
406
import React from "react";
407
407
export default function Component(props) { return <div>{props.children}</div>; }
408
408
function ComponentTwo(props) { return <div>{props.children}</div>; }
409
409
` ,
410
- options : [ { exportOnly : true } ] ,
410
+ options : [ { ignorePrivate : true } ] ,
411
411
} ,
412
412
] ) ,
413
413
@@ -761,7 +761,7 @@ ruleTester.run('no-multi-comp', rule, {
761
761
export const ComponentOne = () => <></>;
762
762
export const ComponentTwo = () => <></>;
763
763
` ,
764
- options : [ { exportOnly : true } ] ,
764
+ options : [ { ignorePrivate : true } ] ,
765
765
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
766
766
} ,
767
767
{
@@ -770,7 +770,7 @@ ruleTester.run('no-multi-comp', rule, {
770
770
const ComponentTwo = () => <></>;
771
771
module.exports = { ComponentOne, ComponentTwo };
772
772
` ,
773
- options : [ { exportOnly : true } ] ,
773
+ options : [ { ignorePrivate : true } ] ,
774
774
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
775
775
} ,
776
776
{
@@ -779,7 +779,7 @@ ruleTester.run('no-multi-comp', rule, {
779
779
export const ComponentTwo = () => <></>;
780
780
export default ComponentOne;
781
781
` ,
782
- options : [ { exportOnly : true } ] ,
782
+ options : [ { ignorePrivate : true } ] ,
783
783
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
784
784
} ,
785
785
{
@@ -788,7 +788,7 @@ ruleTester.run('no-multi-comp', rule, {
788
788
export const ComponentTwo = () => <></>;
789
789
export default ComponentTwo;
790
790
` ,
791
- options : [ { exportOnly : true } ] ,
791
+ options : [ { ignorePrivate : true } ] ,
792
792
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
793
793
} ,
794
794
{
@@ -797,7 +797,7 @@ ruleTester.run('no-multi-comp', rule, {
797
797
export function ComponentTwo() { return <></> };
798
798
export default ComponentOne;
799
799
` ,
800
- options : [ { exportOnly : true } ] ,
800
+ options : [ { ignorePrivate : true } ] ,
801
801
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
802
802
} ,
803
803
{
@@ -806,7 +806,7 @@ ruleTester.run('no-multi-comp', rule, {
806
806
export class ComponentOne extends Component() { render() { return <></>; }};
807
807
export function ComponentTwo() { return <></> };
808
808
` ,
809
- options : [ { exportOnly : true } ] ,
809
+ options : [ { ignorePrivate : true } ] ,
810
810
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
811
811
} ,
812
812
{
@@ -816,7 +816,7 @@ ruleTester.run('no-multi-comp', rule, {
816
816
export function ComponentTwo() { return <></> };
817
817
export default ComponentOne;
818
818
` ,
819
- options : [ { exportOnly : true } ] ,
819
+ options : [ { ignorePrivate : true } ] ,
820
820
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
821
821
} ,
822
822
{
@@ -826,7 +826,7 @@ ruleTester.run('no-multi-comp', rule, {
826
826
function ComponentTwo() { return <></> };
827
827
export default ComponentOne;
828
828
` ,
829
- options : [ { exportOnly : true } ] ,
829
+ options : [ { ignorePrivate : true } ] ,
830
830
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
831
831
} ,
832
832
{
@@ -835,15 +835,15 @@ ruleTester.run('no-multi-comp', rule, {
835
835
const ComponentTwo = () => <></>;
836
836
export { ComponentOne };
837
837
` ,
838
- options : [ { exportOnly : true } ] ,
838
+ options : [ { ignorePrivate : true } ] ,
839
839
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
840
840
} ,
841
841
{
842
842
code : `
843
843
export function ComponentOne() { return <></>; }
844
844
function ComponentTwo() { return <></>; }
845
845
` ,
846
- options : [ { exportOnly : true } ] ,
846
+ options : [ { ignorePrivate : true } ] ,
847
847
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
848
848
} ,
849
849
{
@@ -852,7 +852,7 @@ ruleTester.run('no-multi-comp', rule, {
852
852
const ComponentTwo = () => <></>;
853
853
module.exports = ComponentOne;
854
854
` ,
855
- options : [ { exportOnly : true } ] ,
855
+ options : [ { ignorePrivate : true } ] ,
856
856
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
857
857
} ,
858
858
{
@@ -861,7 +861,7 @@ ruleTester.run('no-multi-comp', rule, {
861
861
const ComponentTwo = () => <></>;
862
862
export default function() { return <ComponentOne />; }
863
863
` ,
864
- options : [ { exportOnly : true } ] ,
864
+ options : [ { ignorePrivate : true } ] ,
865
865
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
866
866
} ,
867
867
{
@@ -870,7 +870,7 @@ ruleTester.run('no-multi-comp', rule, {
870
870
const ComponentTwo = () => <></>;
871
871
export { ComponentOne as default };
872
872
` ,
873
- options : [ { exportOnly : true } ] ,
873
+ options : [ { ignorePrivate : true } ] ,
874
874
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
875
875
} ,
876
876
{
@@ -883,7 +883,7 @@ ruleTester.run('no-multi-comp', rule, {
883
883
render() { return <></>; }
884
884
}
885
885
` ,
886
- options : [ { exportOnly : true } ] ,
886
+ options : [ { ignorePrivate : true } ] ,
887
887
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
888
888
} ,
889
889
{
@@ -897,7 +897,7 @@ ruleTester.run('no-multi-comp', rule, {
897
897
}
898
898
export { ComponentOne };
899
899
` ,
900
- options : [ { exportOnly : true } ] ,
900
+ options : [ { ignorePrivate : true } ] ,
901
901
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
902
902
} ,
903
903
{
@@ -907,7 +907,7 @@ ruleTester.run('no-multi-comp', rule, {
907
907
const ComponentTwo = () => <></>;
908
908
export default ComponentOne;
909
909
` ,
910
- options : [ { exportOnly : true } ] ,
910
+ options : [ { ignorePrivate : true } ] ,
911
911
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
912
912
} ,
913
913
{
@@ -916,7 +916,7 @@ ruleTester.run('no-multi-comp', rule, {
916
916
export default function Component(props) { return <div>{props.children}</div>; }
917
917
export function ComponentTwo(props) { return <div>{props.children}</div>; }
918
918
` ,
919
- options : [ { exportOnly : true } ] ,
919
+ options : [ { ignorePrivate : true } ] ,
920
920
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
921
921
} ,
922
922
{
@@ -925,7 +925,7 @@ ruleTester.run('no-multi-comp', rule, {
925
925
export function componentOne(props) { return <div>{props.children}</div>; }
926
926
export function ComponentOne(props) { return <div>{props.children}</div>; }
927
927
` ,
928
- options : [ { exportOnly : true } ] ,
928
+ options : [ { ignorePrivate : true } ] ,
929
929
errors : [ { messageId : 'onlyOneExportedComponent' } ] ,
930
930
} ,
931
931
] ) ,
0 commit comments