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

convert-args signature contains unused parameters #250

Closed
shellscape opened this issue Jan 24, 2018 · 3 comments · Fixed by #253
Closed

convert-args signature contains unused parameters #250

shellscape opened this issue Jan 24, 2018 · 3 comments · Fixed by #253

Comments

@shellscape
Copy link

Do you want to request a feature or report a bug?

Code cleanup, API change

What is the current behavior?

n/a

What is the expected behavior?

n/a

Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.

https://github.com/webpack/webpack-cli/blob/master/bin/convert-argv.js#L6

contains two unused parameters; yargs and convertOptions. Both should be removed and that API signature removed in favor of ...args and intelligent checking for arguments passed (eg. argv can be at 0 or 1 for convert-args.

webpack-contrib's ESLint config would have thrown an error for this. I'd highly recommend adopting it's use for this repo.

@sendilkumarn
Copy link
Member

the spread operator is not supported in node4. Guess we have to wait until Apr 30 to change this.

@shellscape
Copy link
Author

@sendilkumarn webpack@4 is node6+ as are all new major versions of webpack org modules.

@ematipico
Copy link
Contributor

Yes we can safely use the spread operator now in webpack-cli. We already dropped node v4

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

Successfully merging a pull request may close this issue.

4 participants