@@ -23,6 +23,7 @@ export default defineConfig(
23
23
noUselessIndex : true
24
24
}
25
25
] ,
26
+
26
27
'import/order' : [
27
28
'error' ,
28
29
{
@@ -35,6 +36,7 @@ export default defineConfig(
35
36
pathGroupsExcludedImportTypes : [ 'builtin' ]
36
37
}
37
38
] ,
39
+
38
40
'no-underscore-dangle' : 'off' ,
39
41
40
42
'react/hook-use-state' : [
@@ -43,9 +45,30 @@ export default defineConfig(
43
45
allowDestructuredState : true
44
46
}
45
47
] ,
48
+
49
+ 'react/jsx-closing-bracket-location' : [ 'warn' , 'tag-aligned' ] ,
50
+ 'react/jsx-closing-tag-location' : 'warn' ,
51
+ 'react/jsx-curly-brace-presence' : [
52
+ 'warn' ,
53
+ {
54
+ children : 'never' ,
55
+ propElementValues : 'always' ,
56
+ props : 'never'
57
+ }
58
+ ] ,
46
59
'react/jsx-curly-newline' : [ 'warn' , { multiline : 'consistent' , singleline : 'consistent' } ] ,
60
+ 'react/jsx-equals-spacing' : [ 'warn' , 'never' ] ,
61
+ 'react/jsx-fragments' : [ 'warn' , 'syntax' ] ,
62
+ 'react/jsx-newline' : 'warn' ,
47
63
'react/jsx-no-undef' : [ 'off' ] ,
48
-
64
+ 'react/jsx-no-useless-fragment' : 'warn' ,
65
+ 'react/jsx-one-expression-per-line' : [
66
+ 'warn' ,
67
+ {
68
+ allow : 'single-child'
69
+ }
70
+ ] ,
71
+ 'react/jsx-props-no-multi-spaces' : 'warn' ,
49
72
'react/jsx-sort-props' : [
50
73
'warn' ,
51
74
{ callbacksLast : true , ignoreCase : true , multiline : 'last' , shorthandFirst : true }
0 commit comments