Skip to content

fix(linting): add LifetimeLife rule to catch 'lifetime' where 'life' is meant#3764

Open
jlaportebot wants to merge 2 commits into
Automattic:masterfrom
jlaportebot:fix/lifetime-life-rebased
Open

fix(linting): add LifetimeLife rule to catch 'lifetime' where 'life' is meant#3764
jlaportebot wants to merge 2 commits into
Automattic:masterfrom
jlaportebot:fix/lifetime-life-rebased

Conversation

@jlaportebot

Copy link
Copy Markdown
Contributor

This PR adds a new lint rule that flags the use of 'lifetime' after superlatives where 'life' (lived experience) is the conventional word choice.

Examples:

  • "best day of my lifetime" → "best day of my life"
  • "worst experience of your lifetime" → "worst experience of your life"
  • "biggest change in our lifetime" → "biggest change in our life"

The rule correctly avoids flagging established idioms:

  • "once in a lifetime"
  • "lifetime achievement"
  • "lifetime warranty/guarantee/access/membership/subscription"

This is a rebased version of PR #3650 with the latest changes from master.

}
]
}
}# CI trigger

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be right. Agent markup error perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants