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

Allow RegExp's with no-implicit-this #573

Merged

Conversation

irishic
Copy link

@irishic irishic commented Dec 3, 2018

The rule that permits rules['no-implicit-this'].allow array to include only strings prevents efficient work with ember-test-selectors (it is necessary to put all of data-test-* attributes in allow array, but this list may be large)

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

These changes look good, thanks for working on them!

Can you swap the test added to test/acceptance-test.js for one added in the no-implicit-this tests? Specifically, I think an additional good and bad scenario which include regexps would be all that we need...

@rwjblue
Copy link
Member

rwjblue commented Jan 8, 2019

This test for example:

{
config: { allow: ['book-details'] },
template: '{{book-details}}'
}

@rwjblue
Copy link
Member

rwjblue commented Jan 8, 2019

Sorry for the noise here, I just went ahead and made those changes for you.

@rwjblue rwjblue changed the title Add regexp to allow array Allow RegExp's with no-implicit-this Jan 8, 2019
@rwjblue rwjblue merged commit 5dce290 into ember-template-lint:master Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants