File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,19 @@ import type { TypedFlatConfigItem } from '../types'
4
4
export function disables ( ) : TypedFlatConfigItem [ ] {
5
5
return [
6
6
{
7
- files : [ `scripts/${ GLOB_SRC } ` ] ,
7
+ files : [ `**/ scripts/${ GLOB_SRC } ` ] ,
8
8
name : 'coderwyd/disables/scripts' ,
9
9
rules : {
10
+ 'antfu/no-top-level-await' : 'off' ,
10
11
'no-console' : 'off' ,
11
12
'ts/explicit-function-return-type' : 'off' ,
12
13
} ,
13
14
} ,
14
15
{
15
- files : [ `cli/${ GLOB_SRC } ` , `cli.${ GLOB_SRC_EXT } ` ] ,
16
+ files : [ `**/ cli/${ GLOB_SRC } ` , `**/ cli.${ GLOB_SRC_EXT } ` ] ,
16
17
name : 'coderwyd/disables/cli' ,
17
18
rules : {
19
+ 'antfu/no-top-level-await' : 'off' ,
18
20
'no-console' : 'off' ,
19
21
} ,
20
22
} ,
@@ -40,6 +42,7 @@ export function disables(): TypedFlatConfigItem[] {
40
42
files : [ '**/*.{test,spec}.([tj])s?(x)' ] ,
41
43
name : 'coderwyd/disables/test' ,
42
44
rules : {
45
+ 'antfu/no-top-level-await' : 'off' ,
43
46
'no-unused-expressions' : 'off' ,
44
47
} ,
45
48
} ,
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ export function javascript(
48
48
{ enforceForClassMembers : true , setWithoutGet : true } ,
49
49
] ,
50
50
51
+ 'antfu/no-top-level-await' : 'error' ,
52
+
51
53
'array-callback-return' : 'error' ,
52
54
'block-scoped-var' : 'error' ,
53
55
'constructor-super' : 'error' ,
Original file line number Diff line number Diff line change @@ -106,9 +106,11 @@ export async function vue(
106
106
rules : {
107
107
...pluginVue . configs . base . rules ,
108
108
...vueRules ,
109
-
109
+ 'antfu/no-top-level-await' : 'off' ,
110
110
'node/prefer-global/process' : 'off' ,
111
111
112
+ 'ts/explicit-function-return-type' : 'off' ,
113
+
112
114
'vue/block-order' : [
113
115
'error' ,
114
116
{
You can’t perform that action at this time.
0 commit comments