@@ -47,39 +47,39 @@ ruleTester.run('jsx-fragments', rule, {
47
47
settings
48
48
} , {
49
49
code : '<Act.Frag><Foo /></Act.Frag>' ,
50
- options : [ 'never ' ] ,
50
+ options : [ 'element ' ] ,
51
51
settings
52
52
} , {
53
53
code : `
54
54
import Act, { Frag as F } from 'react';
55
55
<F><Foo /></F>;
56
56
` ,
57
- options : [ 'never ' ] ,
57
+ options : [ 'element ' ] ,
58
58
settings
59
59
} , {
60
60
code : `
61
61
const F = Act.Frag;
62
62
<F><Foo /></F>;
63
63
` ,
64
- options : [ 'never ' ] ,
64
+ options : [ 'element ' ] ,
65
65
settings
66
66
} , {
67
67
code : `
68
68
const { Frag } = Act;
69
69
<Frag><Foo /></Frag>;
70
70
` ,
71
- options : [ 'never ' ] ,
71
+ options : [ 'element ' ] ,
72
72
settings
73
73
} , {
74
74
code : `
75
75
const { Frag } = require('react');
76
76
<Frag><Foo /></Frag>;
77
77
` ,
78
- options : [ 'never ' ] ,
78
+ options : [ 'element ' ] ,
79
79
settings
80
80
} , {
81
81
code : '<Act.Frag key="key"><Foo /></Act.Frag>' ,
82
- options : [ 'always ' ] ,
82
+ options : [ 'syntax ' ] ,
83
83
settings
84
84
} ] ,
85
85
@@ -99,15 +99,15 @@ ruleTester.run('jsx-fragments', rule, {
99
99
} , {
100
100
code : '<><Foo /></>' ,
101
101
parser : 'babel-eslint' ,
102
- options : [ 'never ' ] ,
102
+ options : [ 'element ' ] ,
103
103
settings,
104
104
errors : [ {
105
105
message : 'Prefer Act.Frag over fragment shorthand'
106
106
} ] ,
107
107
output : '<Act.Frag><Foo /></Act.Frag>'
108
108
} , {
109
109
code : '<Act.Frag><Foo /></Act.Frag>' ,
110
- options : [ 'always ' ] ,
110
+ options : [ 'syntax ' ] ,
111
111
settings,
112
112
errors : [ {
113
113
message : 'Prefer fragment shorthand over Act.Frag'
@@ -118,7 +118,7 @@ ruleTester.run('jsx-fragments', rule, {
118
118
import Act, { Frag as F } from 'react';
119
119
<F><Foo /></F>;
120
120
` ,
121
- options : [ 'always ' ] ,
121
+ options : [ 'syntax ' ] ,
122
122
settings,
123
123
errors : [ {
124
124
message : 'Prefer fragment shorthand over Act.Frag'
@@ -132,7 +132,7 @@ ruleTester.run('jsx-fragments', rule, {
132
132
import Act, { Frag } from 'react';
133
133
<Frag><Foo /></Frag>;
134
134
` ,
135
- options : [ 'always ' ] ,
135
+ options : [ 'syntax ' ] ,
136
136
settings,
137
137
errors : [ {
138
138
message : 'Prefer fragment shorthand over Act.Frag'
@@ -146,7 +146,7 @@ ruleTester.run('jsx-fragments', rule, {
146
146
const F = Act.Frag;
147
147
<F><Foo /></F>;
148
148
` ,
149
- options : [ 'always ' ] ,
149
+ options : [ 'syntax ' ] ,
150
150
settings,
151
151
errors : [ {
152
152
message : 'Prefer fragment shorthand over Act.Frag'
@@ -160,7 +160,7 @@ ruleTester.run('jsx-fragments', rule, {
160
160
const { Frag } = Act;
161
161
<Frag><Foo /></Frag>;
162
162
` ,
163
- options : [ 'always ' ] ,
163
+ options : [ 'syntax ' ] ,
164
164
settings,
165
165
errors : [ {
166
166
message : 'Prefer fragment shorthand over Act.Frag'
@@ -174,7 +174,7 @@ ruleTester.run('jsx-fragments', rule, {
174
174
const { Frag } = require('react');
175
175
<Frag><Foo /></Frag>;
176
176
` ,
177
- options : [ 'always ' ] ,
177
+ options : [ 'syntax ' ] ,
178
178
settings,
179
179
errors : [ {
180
180
message : 'Prefer fragment shorthand over Act.Frag'
0 commit comments