Skip to content
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

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

patricklx
Copy link
Contributor

@patricklx patricklx commented Nov 4, 2023

And remove from recommended config.

Follow-up to:

@NullVoxPopuli
Copy link
Contributor

🎉

@@ -6,6 +6,7 @@ module.exports = {
description: 'disallow referencing let variables in \\<template\\>',
category: 'Ember Octane',
recommended: true,
recommended_for: 'gjs',
Copy link
Member

@bmish bmish Nov 5, 2023

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?

Copy link
Contributor Author

@patricklx patricklx Nov 5, 2023

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'?

Copy link
Contributor Author

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?

Copy link
Member

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.

@patricklx patricklx force-pushed the patch-6 branch 2 times, most recently from 89f089b to 57a1e24 Compare November 6, 2023 08:31
@patricklx patricklx marked this pull request as ready for review November 6, 2023 08:31
README.md Outdated Show resolved Hide resolved
Copy link
Member

@bmish bmish left a 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.

@bmish bmish changed the title add rule to recommended gjs Add template-no-let-reference rule to recommended-gjs and recommended-gts configs Nov 6, 2023
@bmish bmish added the Breaking label Nov 6, 2023
@NullVoxPopuli NullVoxPopuli merged commit f71cfd6 into ember-cli:master Nov 7, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants