11import { pluginAntfu , pluginImport } from '../plugins'
2- import { GLOB_MARKDOWN , GLOB_SRC , GLOB_SRC_EXT } from '../constants/glob'
2+ import { GLOB_SRC_EXT } from '../constants/glob'
33import type { FlatConfigItem } from '../types'
44
55export async function imports ( ) : Promise < FlatConfigItem [ ] > {
@@ -23,7 +23,6 @@ export async function imports(): Promise<FlatConfigItem[]> {
2323 'import/no-default-export' : 'error' ,
2424 'import/no-duplicates' : 'error' ,
2525 'import/no-mutable-exports' : 'error' ,
26- 'import/no-named-default' : 'error' ,
2726 'import/no-self-import' : 'error' ,
2827 'import/no-webpack-loader-syntax' : 'error' ,
2928 'import/order' : [
@@ -45,23 +44,6 @@ export async function imports(): Promise<FlatConfigItem[]> {
4544 ] ,
4645 } ,
4746 } ,
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- } ,
6547 {
6648 files : [ '**/bin/**/*' , `**/bin.${ GLOB_SRC_EXT } ` ] ,
6749 name : 'coderwyd:imports:bin' ,
0 commit comments