Skip to content

Commit

Permalink
fix(type-declaration-immutability): replace fixer with suggestions fo…
Browse files Browse the repository at this point in the history
…r recommended and lite configs
  • Loading branch information
RebeccaStevens committed Apr 1, 2024
1 parent 7a0a790 commit ae62abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const overrides = {
identifiers: ["^I?Readonly.+"],
immutability: Immutability.ReadonlyShallow,
comparator: RuleEnforcementComparator.AtLeast,
fixer: [
suggestions: [
{
pattern: "^(Array|Map|Set)<(.+)>$",
replace: "Readonly$1<$2>",
Expand All @@ -101,7 +101,7 @@ const overrides = {
identifiers: ["^I?Mutable.+"],
immutability: Immutability.Mutable,
comparator: RuleEnforcementComparator.AtMost,
fixer: [
suggestions: [
{
pattern: "^Readonly(Array|Map|Set)<(.+)>$",
replace: "$1<$2>",
Expand Down

0 comments on commit ae62abb

Please sign in to comment.