Skip to content

Commit 4b6990d

Browse files
fix(functional/no-conditional-statements): ignore import.meta.vitest conditions
1 parent 189a8e9 commit 4b6990d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/configs/functional.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ export async function functional(
4141
"functional/prefer-immutable-types": "error",
4242
"functional/type-declaration-immutability": "error",
4343
"functional/no-mixed-types": "error",
44-
"functional/no-conditional-statements": "error",
44+
"functional/no-conditional-statements": [
45+
"error",
46+
{
47+
ignoreCodePattern: ["import.meta.vitest"],
48+
},
49+
],
4550
"functional/no-expression-statements": "error",
4651
"functional/no-return-void": "error",
4752
"functional/prefer-property-signatures": stylistic === false ? "off" : "error",
@@ -85,6 +90,7 @@ export async function functional(
8590
"error",
8691
{
8792
allowReturningBranches: true,
93+
ignoreCodePattern: ["import.meta.vitest"],
8894
},
8995
],
9096
"functional/no-expression-statements": [

0 commit comments

Comments
 (0)