Skip to content

Commit 97e4b3e

Browse files
feat: more tweaks
1 parent 9393497 commit 97e4b3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/configs/functional.ts

+4
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ export async function functional(
172172
immutability: "ReadonlyShallow",
173173
comparator: "AtLeast",
174174
fixer: [
175+
{
176+
pattern: "^([A-Za-z0-9_\\.]+\\[\\])$",
177+
replace: "readonly $1",
178+
},
175179
{
176180
pattern: "^(Array|Map|Set)<(.+)>$",
177181
replace: "Readonly$1<$2>",

0 commit comments

Comments
 (0)