@@ -55,26 +55,8 @@ export default tseslint.config(
5555 } ,
5656 } ,
5757 {
58- // Import specific config
59- files : [ 'packages/*/src/**/*.{ts,tsx}' ] , // Target all TS/TSX in the packages
60- plugins : {
61- import : importPlugin ,
62- } ,
63- settings : {
64- 'import/resolver' : {
65- node : true ,
66- } ,
67- } ,
68- rules : {
69- ...importPlugin . configs . recommended . rules ,
70- ...importPlugin . configs . typescript . rules ,
71- 'import/no-default-export' : 'warn' ,
72- 'import/no-unresolved' : 'off' , // Disable for now, can be noisy with monorepos/paths
73- } ,
74- } ,
75- {
76- // General overrides and rules for the project (TS/TSX files)
77- files : [ 'packages/*/src/**/*.{ts,tsx}' ] , // Target only TS/TSX in the cli package
58+ // Rules for packages/*/src (TS/TSX)
59+ files : [ 'packages/*/src/**/*.{ts,tsx}' ] ,
7860 plugins : {
7961 import : importPlugin ,
8062 } ,
@@ -95,6 +77,11 @@ export default tseslint.config(
9577 } ,
9678 } ,
9779 rules : {
80+ ...importPlugin . configs . recommended . rules ,
81+ ...importPlugin . configs . typescript . rules ,
82+ 'import/no-default-export' : 'warn' ,
83+ 'import/no-unresolved' : 'off' ,
84+ 'import/no-duplicates' : 'error' ,
9885 // General Best Practice Rules (subset adapted for flat config)
9986 '@typescript-eslint/array-type' : [ 'error' , { default : 'array-simple' } ] ,
10087 'arrow-body-style' : [ 'error' , 'as-needed' ] ,
0 commit comments