1
+ const defaultExtends = [
2
+ 'tui' ,
3
+ 'prettier' ,
4
+ 'plugin:@typescript-eslint/recommended' ,
5
+ 'plugin:react/recommended' ,
6
+ 'plugin:prettier/recommended' ,
7
+ ] ;
8
+
1
9
module . exports = {
2
10
root : true ,
3
11
env : {
@@ -20,14 +28,7 @@ module.exports = {
20
28
'@typescript-eslint' ,
21
29
'jest' ,
22
30
] ,
23
- extends : [
24
- 'tui' ,
25
- 'prettier' ,
26
- 'plugin:@typescript-eslint/recommended' ,
27
- 'plugin:jest/recommended' ,
28
- 'plugin:react/recommended' ,
29
- 'plugin:prettier/recommended' ,
30
- ] ,
31
+ extends : defaultExtends ,
31
32
settings : {
32
33
react : {
33
34
pragma : 'h' ,
@@ -92,7 +93,8 @@ module.exports = {
92
93
} ,
93
94
overrides : [
94
95
{
95
- files : [ '*.spec.ts' , '*.spec.tsx' , '*.e2e.ts' ] ,
96
+ files : [ '*.spec.ts' , '*.spec.tsx' ] ,
97
+ extends : [ 'plugin:jest/recommended' ] ,
96
98
rules : {
97
99
'max-nested-callbacks' : [ 'error' , { max : 5 } ] ,
98
100
'jest/expect-expect' : [
@@ -101,15 +103,15 @@ module.exports = {
101
103
assertFunctionNames : [ 'expect' , 'assert*' ] ,
102
104
} ,
103
105
] ,
106
+ 'jest/no-conditional-expect' : 'warn' ,
104
107
} ,
105
108
} ,
106
109
{
107
110
files : [ 'apps/calendar/playwright/**/*.ts' ] ,
111
+ extends : [ 'plugin:playwright/playwright-test' ] ,
108
112
rules : {
113
+ 'max-nested-callbacks' : [ 'error' , { max : 5 } ] ,
109
114
'dot-notation' : [ 'error' , { allowKeywords : true } ] ,
110
- 'jest/expect-expect' : 'off' ,
111
- 'jest/no-done-callback' : 'off' ,
112
- 'jest/no-standalone-expect' : [ 'error' , { additionalTestBlockFunctions : [ 'test' ] } ] ,
113
115
} ,
114
116
} ,
115
117
] ,
0 commit comments