Skip to content

Commit

Permalink
feat(prefer-readonly-type): turn option "allowMutableReturnType" on b…
Browse files Browse the repository at this point in the history
…y default

BREAKING CHANGE: allowMutableReturnType is now on by default

re #153
  • Loading branch information
RebeccaStevens committed Jul 31, 2021
1 parent 5098242 commit 5d7fa06
Show file tree
Hide file tree
Showing 4 changed files with 273 additions and 87 deletions.
2 changes: 1 addition & 1 deletion docs/rules/prefer-readonly-type.md
Expand Up @@ -106,7 +106,7 @@ The default options:
```ts
{
allowLocalMutation: false,
allowMutableReturnType: false,
allowMutableReturnType: true,
checkImplicit: false,
ignoreClass: false,
ignoreInterface: false,
Expand Down
2 changes: 1 addition & 1 deletion src/rules/prefer-readonly-type.ts
Expand Up @@ -75,7 +75,7 @@ const defaultOptions: Options = {
ignoreInterface: false,
ignoreCollections: false,
allowLocalMutation: false,
allowMutableReturnType: false,
allowMutableReturnType: true,
};

// The possible error messages.
Expand Down

0 comments on commit 5d7fa06

Please sign in to comment.