@@ -29,8 +29,6 @@ export async function functional(
29
29
// ignoreTypePattern,
30
30
} = options ;
31
31
32
- const stylisticEnforcement = stylistic === false ? "off" : "error" ;
33
-
34
32
const [ pluginFunctional ] = ( await loadPackages ( [
35
33
"eslint-plugin-functional" ,
36
34
] ) ) as [ ( typeof import ( "eslint-plugin-functional" ) ) [ "default" ] ] ;
@@ -50,9 +48,10 @@ export async function functional(
50
48
"functional/no-conditional-statements" : "error" ,
51
49
"functional/no-expression-statements" : "error" ,
52
50
"functional/no-return-void" : "error" ,
53
- "functional/prefer-property-signatures" : stylisticEnforcement ,
54
- "functional/prefer-tacit" : stylisticEnforcement ,
55
- "functional/readonly-type" : stylisticEnforcement ,
51
+ "functional/prefer-property-signatures" :
52
+ stylistic === false ? "off" : "error" ,
53
+ "functional/prefer-tacit" : stylistic === false ? "off" : "warn" ,
54
+ "functional/readonly-type" : stylistic === false ? "off" : "error" ,
56
55
} as const satisfies FlatConfigItem [ "rules" ] ;
57
56
58
57
const recommendedRules = {
@@ -221,9 +220,10 @@ export async function functional(
221
220
} ,
222
221
] ,
223
222
224
- "functional/prefer-property-signatures" : stylisticEnforcement ,
225
- "functional/prefer-tacit" : stylisticEnforcement ,
226
- "functional/readonly-type" : stylisticEnforcement ,
223
+ "functional/prefer-property-signatures" :
224
+ stylistic === false ? "off" : "error" ,
225
+ "functional/prefer-tacit" : stylistic === false ? "off" : "warn" ,
226
+ "functional/readonly-type" : stylistic === false ? "off" : "error" ,
227
227
} as const satisfies FlatConfigItem [ "rules" ] ;
228
228
229
229
const liteRules = {
0 commit comments