Skip to content

Commit 5c92496

Browse files
committed
Temporarily disable @typescript-eslint/prefer-readonly-parameter-types rule
1 parent 9fdbffe commit 5c92496

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

index.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,15 @@ module.exports = {
373373
'@typescript-eslint/prefer-nullish-coalescing': 'error',
374374
'@typescript-eslint/prefer-optional-chain': 'error',
375375
'@typescript-eslint/prefer-readonly': 'error',
376-
'@typescript-eslint/prefer-readonly-parameter-types': [
377-
'error',
378-
{
379-
checkParameterProperties: true
380-
}
381-
],
376+
377+
// Disabled until https://github.com/typescript-eslint/typescript-eslint/issues/1758 is fixed. Currently, it's too difficult to accept `Map` as a parameter.
378+
// '@typescript-eslint/prefer-readonly-parameter-types': [
379+
// 'error',
380+
// {
381+
// checkParameterProperties: true
382+
// }
383+
// ],
384+
382385
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
383386
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
384387
'@typescript-eslint/prefer-ts-expect-error': 'error',

0 commit comments

Comments
 (0)