Skip to content

Commit c0be938

Browse files
fix: make rule prefer-readonly-parameter-types more lenient
1 parent 9661ded commit c0be938

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/plugins/typescript.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,13 @@ export const settings: Linter.Config = {
158158
"@typescript-eslint/prefer-includes": "warn",
159159
"@typescript-eslint/prefer-nullish-coalescing": "warn",
160160
"@typescript-eslint/prefer-optional-chain": "warn",
161-
"@typescript-eslint/prefer-readonly-parameter-types": "warn",
161+
"@typescript-eslint/prefer-readonly-parameter-types": [
162+
"warn",
163+
{
164+
checkParameterProperties: false,
165+
ignoreInferredTypes: true,
166+
},
167+
],
162168
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
163169
"@typescript-eslint/prefer-ts-expect-error": "warn",
164170
"@typescript-eslint/promise-function-async": "error",

0 commit comments

Comments
 (0)