-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add template-no-let-reference
rule to recommended-gjs
and recommended-gts
configs
#1981
Conversation
🎉 |
@@ -6,6 +6,7 @@ module.exports = { | |||
description: 'disallow referencing let variables in \\<template\\>', | |||
category: 'Ember Octane', | |||
recommended: true, | |||
recommended_for: 'gjs', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we follow the current pattern which is configName: true
to indicate if the rule belongs to a config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean replace recommended_for with configName: 'gts'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any examples for that property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we should use the config name as the property name, no shorthand:
recommendedGts: true
And then we can automatically transform camelCase to kebab-case when checking if a rule is enabled for a config.
89f089b
to
57a1e24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
In the future, please use a more descriptive PR title and description. The PR title will end up displayed publicly in the changelog and needs to provide appropriate context. The PR description should provide additional context.
template-no-let-reference
rule to recommended-gjs
and recommended-gts
configs
And remove from
recommended
config.Follow-up to:
recommended
rule:template-no-let-reference
#1977