create-config icon indicating copy to clipboard operation
create-config copied to clipboard

chore: improve argument parsing

Open hyperz111 opened this issue 2 months ago • 2 comments

Prerequisites checklist

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.

hyperz111 avatar Oct 22 '25 21:10 hyperz111

@aladdin-add, why you draft it?

hyperz111 avatar Oct 30 '25 08:10 hyperz111

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).

aladdin-add avatar Nov 03 '25 14:11 aladdin-add