Skip to content

Commit f5f3930

Browse files
feat!(prefer-readonly-type): turn option "allowMutableReturnType" on by default
BREAKING CHANGE: allowMutableReturnType is now on by default re #153
1 parent 9158854 commit f5f3930

File tree

4 files changed

+273
-87
lines changed

4 files changed

+273
-87
lines changed

docs/rules/prefer-readonly-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The default options:
106106
```ts
107107
{
108108
allowLocalMutation: false,
109-
allowMutableReturnType: false,
109+
allowMutableReturnType: true,
110110
checkImplicit: false,
111111
ignoreClass: false,
112112
ignoreInterface: false,

src/rules/prefer-readonly-type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const defaultOptions: Options = {
7575
ignoreInterface: false,
7676
ignoreCollections: false,
7777
allowLocalMutation: false,
78-
allowMutableReturnType: false,
78+
allowMutableReturnType: true,
7979
};
8080

8181
// The possible error messages.

0 commit comments

Comments
 (0)