File tree 2 files changed +21
-2
lines changed
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ module.exports = {
26
26
unnamedComponents : 'arrow-function' ,
27
27
} ,
28
28
] ,
29
- 'import/no-unresolved' : 0 ,
30
29
'generator-star-spacing' : 0 ,
31
30
'no-console' : 0 ,
32
31
'require-atomic-updates' : 0 ,
@@ -48,8 +47,16 @@ module.exports = {
48
47
'implicit-arrow-linebreak' : 0 ,
49
48
'import/no-extraneous-dependencies' : 0 ,
50
49
'import/no-named-as-default' : 0 ,
50
+ 'import/no-unresolved' : 0 ,
51
51
'import/order' : 2 ,
52
52
'import/prefer-default-export' : 'off' ,
53
+ 'jsx-a11y/anchor-is-valid' : [
54
+ 'error' ,
55
+ {
56
+ components : [ 'Link' ] ,
57
+ specialLink : [ 'to' ] ,
58
+ } ,
59
+ ] ,
53
60
'jsx-a11y/click-events-have-key-events' : 1 ,
54
61
'max-len' : [
55
62
2 ,
Original file line number Diff line number Diff line change @@ -35,7 +35,19 @@ const jestConfig = {
35
35
roots : [ '<rootDir>/admin/src/' , '<rootDir>/server/' ] ,
36
36
verbose : true ,
37
37
transform : {
38
- '\\.[jt]s$' : '@swc/jest' ,
38
+ '\\.[jt]s$' : [
39
+ '@swc/jest' ,
40
+ {
41
+ jsc : {
42
+ parser : {
43
+ jsx : true ,
44
+ dynamicImport : true ,
45
+ } ,
46
+ // this should match the minimum supported node.js version
47
+ target : 'es2020' ,
48
+ } ,
49
+ } ,
50
+ ] ,
39
51
} ,
40
52
} ;
41
53
You can’t perform that action at this time.
0 commit comments