@@ -68,7 +68,13 @@ export default [
6868 'no-await-in-loop' : 'warn' ,
6969 '@typescript-eslint/no-unused-vars' : 'warn' ,
7070 '@typescript-eslint/consistent-type-definitions' : 'warn' ,
71- '@typescript-eslint/ban-types' : 'warn' ,
71+ // Using rules compatible with @typescript -eslint v7 (from @scaleway/eslint-config-react)
72+ '@typescript-eslint/no-explicit-any' : 'warn' ,
73+ '@typescript-eslint/no-empty-interface' : 'warn' ,
74+ '@typescript-eslint/no-unsafe-assignment' : 'warn' ,
75+ '@typescript-eslint/no-unsafe-call' : 'warn' ,
76+ '@typescript-eslint/no-unsafe-member-access' : 'warn' ,
77+ '@typescript-eslint/no-unsafe-return' : 'warn' ,
7278 } ,
7379 } ) ) ,
7480
@@ -115,4 +121,27 @@ export default [
115121 'no-restricted-syntax' : 'off' ,
116122 } ,
117123 } ) ) ,
124+
125+ // Exclude all generated packages from strict type rules
126+ ...scwTypescript . map ( config => ( {
127+ ...config ,
128+ files : [
129+ 'packages_generated/**/*.ts' ,
130+ ] ,
131+ rules : {
132+ ...config . rules ,
133+ '@typescript-eslint/consistent-type-definitions' : 'off' ,
134+ '@typescript-eslint/no-unsafe-assignment' : 'off' ,
135+ '@typescript-eslint/no-unsafe-call' : 'off' ,
136+ '@typescript-eslint/no-unsafe-member-access' : 'off' ,
137+ '@typescript-eslint/no-unsafe-return' : 'off' ,
138+ '@typescript-eslint/ban-types' : 'off' ,
139+ '@typescript-eslint/no-unused-vars' : 'off' ,
140+ '@typescript-eslint/no-use-before-define' : 'off' ,
141+ 'no-restricted-syntax' : 'off' ,
142+ 'no-useless-escape' : 'off' ,
143+ 'no-underscore-dangle' : 'off' ,
144+ 'max-classes-per-file' : 'off' ,
145+ } ,
146+ } ) ) ,
118147]
0 commit comments