File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ export async function functional(
22
22
stylistic = true ,
23
23
filesTypeAware = defaultFilesTypesAware ,
24
24
functionalEnforcement = "none" ,
25
+ ignoreNamePattern = [ "^mutable" , "^[mM]_" ] ,
26
+ // ignoreTypePattern = [],
25
27
} = options ;
26
28
27
29
if ( functionalEnforcement === "none" ) {
@@ -71,7 +73,7 @@ export async function functional(
71
73
"error" ,
72
74
{
73
75
allowInForLoopInit : true ,
74
- ignoreIdentifierPattern : [ "^mutable" , "^m_" ] ,
76
+ ignoreIdentifierPattern : ignoreNamePattern ,
75
77
} ,
76
78
] ,
77
79
"functional/no-loop-statements" : "error" ,
@@ -123,7 +125,7 @@ export async function functional(
123
125
] ,
124
126
options : {
125
127
ignoreInferredTypes : true ,
126
- ignoreNamePattern : [ "^[mM]_" ] ,
128
+ ignoreNamePattern,
127
129
parameters : { enforcement : "ReadonlyShallow" } ,
128
130
suggestions : {
129
131
ReadonlyShallow : [
Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ export type OptionsUnoCSS = {
149
149
150
150
export type OptionsFunctional = {
151
151
functionalEnforcement ?: "none" | "lite" | "default" | "strict" ;
152
+ ignoreNamePattern ?: string [ ] ;
153
+ // ignoreTypePattern?: string[];
152
154
} ;
153
155
154
156
export type OptionsIgnores =
You can’t perform that action at this time.
0 commit comments