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

Chore: added fixlint in Makefile.js #440

Merged
merged 7 commits into from
May 7, 2020

Conversation

anikethsaha
Copy link
Member

added a fixlint command and script in order to fix the autofixable linting issue

Makefile.js Outdated Show resolved Hide resolved
@anikethsaha anikethsaha requested a review from nzakas April 20, 2020 11:42
Makefile.js Outdated Show resolved Hide resolved
@anikethsaha anikethsaha requested a review from kaicataldo April 22, 2020 10:58
Makefile.js Outdated Show resolved Hide resolved
@anikethsaha anikethsaha requested a review from kaicataldo April 23, 2020 11:52
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kaicataldo
Copy link
Member

@anikethsaha Do you mind resolving the merge conflicts?

@anikethsaha anikethsaha requested a review from kaicataldo May 7, 2020 05:13
Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

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

Sorry, one last thing to check, but otherwise this LGTM!

TEST_FILES = "tests/lib/**/*.js",

// FLAGS
CLIFLAGS = process.argv.slice(3);
Copy link
Member

Choose a reason for hiding this comment

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

Looking at the documentation, I’m not sure nodeCLI.exec() accepts an array as an argument. Should this be the following?

Suggested change
CLIFLAGS = process.argv.slice(3);
CLIFLAGS = process.argv.slice(3).join( );

Alternatively, we could use the spread operator in the function calls below:

lastReturn = nodeCLI.exec("eslint", MAKEFILE, ...CLIFLAGS);

Copy link
Member Author

Choose a reason for hiding this comment

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

I am a bit confused as in this line it does say that the args are converted an array but here it is looping the argument.

I think its better to use the spread operator.

Copy link
Member

@kaicataldo kaicataldo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@kaicataldo kaicataldo merged commit ad0543c into eslint:master May 7, 2020
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.

3 participants