File tree 1 file changed +36
-2
lines changed
1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -1164,7 +1164,7 @@ const Component = () => (
1164
1164
} ,
1165
1165
] ) ,
1166
1166
1167
- invalid : parsers . all ( [
1167
+ invalid : parsers . all ( [ ] . concat (
1168
1168
{
1169
1169
code : `
1170
1170
<div>
@@ -2934,5 +2934,39 @@ const Component = () => (
2934
2934
} ,
2935
2935
] ,
2936
2936
} ,
2937
- ] ) ,
2937
+ semver . satisfies ( eslintVersion , '> 4' ) ? {
2938
+ code : `
2939
+ import React from 'react';
2940
+
2941
+ export default function () {
2942
+ return (
2943
+ <div>
2944
+ Test1
2945
+
2946
+ <p>Test2</p>
2947
+ </div>
2948
+ );
2949
+ }
2950
+ ` ,
2951
+ // TODO: remove two spaces from the Test2 output line
2952
+ output : `
2953
+ import React from 'react';
2954
+
2955
+ export default function () {
2956
+ return (
2957
+ <div>
2958
+ Test1
2959
+
2960
+ <p>Test2</p>
2961
+ </div>
2962
+ );
2963
+ }
2964
+ ` ,
2965
+ options : [ 4 ] ,
2966
+ errors : [
2967
+ { messageId : 'wrongIndent' , line : 6 } ,
2968
+ { messageId : 'wrongIndent' , line : 9 } ,
2969
+ ] ,
2970
+ } : [ ]
2971
+ ) ) ,
2938
2972
} ) ;
You can’t perform that action at this time.
0 commit comments