create-config
create-config copied to clipboard
chore: improve argument parsing
Prerequisites checklist
- [X] I have read the contributing guidelines.
What is the purpose of this pull request?
To improve argument parsing.
What changes did you make? (Give an overview)
Using parseArgs method from node:util module.
Now we can do this (using equal mark):
npm create @eslint/config --config=eslint-config-airbnb
Related Issues
N/A
Is there anything you'd like reviewers to focus on?
Maybe we can remove n/unsupported-features/node-builtins when #206 is merged.
@aladdin-add, why you draft it?
Not sure if utils.parseArgs is supported in node v18, I would merge it after https://github.com/eslint/create-config/pull/206 merged (for safety).