Skip to content

Commit a0a1af7

Browse files
fix(@typescript-eslint/prefer-readonly-parameter-types): treat methods as readonly
this will prevent more errors when working with 3rd party code
1 parent 8d647d1 commit a0a1af7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/typescript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export const settings: Linter.Config = {
176176
{
177177
checkParameterProperties: false,
178178
ignoreInferredTypes: true,
179+
treatMethodsAsReadonly: true,
179180
},
180181
],
181182
"@typescript-eslint/prefer-regexp-exec": "error",

0 commit comments

Comments
 (0)