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-unique #126

Merged
merged 3 commits into from
Sep 30, 2019
Merged

Create a fixer for no-unique #126

merged 3 commits into from
Sep 30, 2019

Conversation

edg2s
Copy link
Member

@edg2s edg2s commented Sep 28, 2019

Part of #115

'Prefer $.uniqueSort to $.unique',
'code',
function ( node, fixer ) {
return fixer.replaceText( node.callee.property, 'uniqueSort' );
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't node.callee.property exactly node here ?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, node is the whole of $.unique().

Copy link
Contributor

Choose a reason for hiding this comment

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

oh right; The node is the CallExpression here.

@jdforrester jdforrester merged commit adaf412 into master Sep 30, 2019
@jdforrester jdforrester deleted the no-unique-fix branch September 30, 2019 16:51
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