Skip to content

Commit 74a8879

Browse files
feat: more tweaks
1 parent f8ffaca commit 74a8879

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/configs/functional.ts

+17
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,23 @@ export async function functional(
221221
"functional/no-conditional-statements": "off",
222222
"functional/no-expression-statements": "off",
223223
"functional/no-return-void": "off",
224+
"functional/prefer-immutable-types": [
225+
"warn",
226+
{
227+
...recommendedRules["functional/prefer-immutable-types"][1],
228+
overrides: [
229+
{
230+
...recommendedRules["functional/prefer-immutable-types"][1]
231+
.overrides[0],
232+
specifiers: [
233+
{
234+
from: "file",
235+
},
236+
],
237+
},
238+
],
239+
},
240+
],
224241
} satisfies FlatConfigItem["rules"];
225242

226243
return [

0 commit comments

Comments
 (0)