1
1
import { pluginAntfu , pluginImport } from '../plugins'
2
- import { GLOB_MARKDOWN , GLOB_SRC , GLOB_SRC_EXT } from '../constants/glob'
2
+ import { GLOB_SRC_EXT } from '../constants/glob'
3
3
import type { FlatConfigItem } from '../types'
4
4
5
5
export async function imports ( ) : Promise < FlatConfigItem [ ] > {
@@ -23,7 +23,6 @@ export async function imports(): Promise<FlatConfigItem[]> {
23
23
'import/no-default-export' : 'error' ,
24
24
'import/no-duplicates' : 'error' ,
25
25
'import/no-mutable-exports' : 'error' ,
26
- 'import/no-named-default' : 'error' ,
27
26
'import/no-self-import' : 'error' ,
28
27
'import/no-webpack-loader-syntax' : 'error' ,
29
28
'import/order' : [
@@ -45,23 +44,6 @@ export async function imports(): Promise<FlatConfigItem[]> {
45
44
] ,
46
45
} ,
47
46
} ,
48
- {
49
- files : [
50
- `**/*config*.${ GLOB_SRC_EXT } ` ,
51
- `**/views/${ GLOB_SRC } ` ,
52
- `**/pages/${ GLOB_SRC } ` ,
53
- `**/{index,vite,esbuild,rollup,webpack,rspack}.ts` ,
54
- '**/*.d.ts' ,
55
- `${ GLOB_MARKDOWN } /**` ,
56
- '**/.prettierrc*' ,
57
- ] ,
58
- plugins : {
59
- import : pluginImport ,
60
- } ,
61
- rules : {
62
- 'import/no-default-export' : 'off' ,
63
- } ,
64
- } ,
65
47
{
66
48
files : [ '**/bin/**/*' , `**/bin.${ GLOB_SRC_EXT } ` ] ,
67
49
name : 'coderwyd:imports:bin' ,
0 commit comments