@@ -56,7 +56,7 @@ export default defineConfig([
5656 'no-else-return' : [ 'error' , { allowElseIf : false } ] ,
5757
5858 // --- General strict rules ---
59- curly : [ 'error' , 'multi-line ' ] ,
59+ curly : [ 'error' , 'all ' ] ,
6060 eqeqeq : [ 'error' , 'always' ] ,
6161 'no-console' : [ 'warn' , { allow : [ 'info' , 'warn' , 'error' ] } ] ,
6262 'no-eval' : 'error' ,
@@ -74,6 +74,14 @@ export default defineConfig([
7474
7575 // --- Unicorn overrides ---
7676 'unicorn/prevent-abbreviations' : 'off' ,
77+ 'unicorn/name-replacements' : 'off' ,
78+ // Conflicts with functional/no-loop-statements (recursion replaces loops).
79+ 'unicorn/no-useless-recursion' : 'off' ,
80+ // Conflicts with the no-else / early-return style (wants `else if`).
81+ 'unicorn/prefer-else-if' : 'off' ,
82+ // Conflicts with the no-try/catch convention and deliberate promise
83+ // combinators used to cache and race promises.
84+ 'unicorn/prefer-await' : 'off' ,
7785
7886 // --- Import ordering (alphabetical) ---
7987 'import-x/order' : [
@@ -93,6 +101,19 @@ export default defineConfig([
93101
94102 {
95103 files : [ '**/*.test.ts' , '**/*.test.tsx' ] ,
96- rules : Object . fromEntries ( Object . keys ( functionalPlugin . rules ) . map ( ( rule ) => [ `functional/${ rule } ` , 'off' ] ) ) ,
104+ rules : {
105+ ...Object . fromEntries ( Object . keys ( functionalPlugin . rules ) . map ( ( rule ) => [ `functional/${ rule } ` , 'off' ] ) ) ,
106+ // Standard async fixture pattern: `let ctx; beforeAll(() => { ctx = ... })`.
107+ 'unicorn/no-top-level-assignment-in-function' : 'off' ,
108+ // Tests mock process globals (e.g. fetch) and nest calls in assertions.
109+ 'unicorn/no-global-object-property-assignment' : 'off' ,
110+ 'unicorn/max-nested-calls' : 'off' ,
111+ } ,
112+ } ,
113+
114+ {
115+ // CLI command modules build commander.js commands at module load.
116+ files : [ 'src/cli/**/*.ts' ] ,
117+ rules : { 'unicorn/no-top-level-side-effects' : 'off' } ,
97118 } ,
98119] ) ;
0 commit comments