Skip to content

Conversation

crisbeto
Copy link
Member

Currently we have a convention for prefixing private members with an underscore, however there's nothing verifying it. This comes up occasionally in PRs and there some cases that have deviated from the pattern. These changes add a tslint rule that allows us to customize the naming pattern for the various modifiers.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 13, 2019
@crisbeto crisbeto force-pushed the modifier-pattern-rule branch from 018ddd4 to 7f1d6c2 Compare April 13, 2019 22:14
@crisbeto crisbeto marked this pull request as ready for review April 13, 2019 22:16
@crisbeto crisbeto added pr: merge safe target: patch This PR is targeted for the next patch release labels Apr 13, 2019
@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: merge safe labels Apr 15, 2019
@mmalerba
Copy link
Contributor

Removed pr: merge safe because while the changes are trivial, they do touch source files that are synced into g3, and should therefore still be presubmitted

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM. At some point we should really have something like "Angular TSLint" rules 😄 I could imagine Framework liking this as well 🤷

Currently we have a convention for prefixing private members with an underscore, however there's nothing verifying it. This comes up occasionally in PRs and there some cases that have deviated from the pattern. These changes add a tslint rule that allows us to customize the naming pattern for the various modifiers.
@crisbeto crisbeto force-pushed the modifier-pattern-rule branch from 3ef60e9 to 056fd8e Compare April 29, 2019 20:11
@jelbourn jelbourn merged commit 50b9fe2 into angular:master May 13, 2019
RudolfFrederiksen pushed a commit to RudolfFrederiksen/material2 that referenced this pull request Jun 21, 2019
Currently we have a convention for prefixing private members with an underscore, however there's nothing verifying it. This comes up occasionally in PRs and there some cases that have deviated from the pattern. These changes add a tslint rule that allows us to customize the naming pattern for the various modifiers.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants