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

Create a fixer for no-is-array #121

Merged
merged 2 commits into from
Sep 26, 2019
Merged

Create a fixer for no-is-array #121

merged 2 commits into from
Sep 26, 2019

Conversation

edg2s
Copy link
Member

@edg2s edg2s commented Sep 26, 2019

Part of #115

rules/utils.js Outdated
@@ -196,11 +197,12 @@ function createUtilMethodRule( methods, message ) {
node: node,
message: typeof message === 'function' ?
message( node ) :
message || '$.' + name + ' is not allowed'
message || '$.' + name + ' is not allowed',
fix: fix.bind( this, node )
Copy link
Member

Choose a reason for hiding this comment

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

Can't .bind() on undefined.

@jdforrester jdforrester merged commit 188b910 into master Sep 26, 2019
@jdforrester jdforrester deleted the no-is-array-fixer branch September 26, 2019 22:36
@stof
Copy link
Contributor

stof commented Sep 30, 2019

The doc generator should be updated to mark the rule as fixable.

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

Successfully merging this pull request may close these issues.

3 participants