eslint / create-config

Utility to create ESLint config files
MIT License
76 stars 19 forks source link

Bug: "Where does your code run?" answer is ignored by @eslint/config@latest #104

Closed egorFiNE closed 6 months ago

egorFiNE commented 6 months ago

Environment

Node version: 21.7.3 npm version: 10.5.0 Operating System: Darwin 23.4.0

What parser are you using?

Default (Espree)

What did you do?

  1. Create empty folder. Run npm init inside, all default answers.

  2. Execute npm init @eslint/config@latest. Answer as follows:

✔ How would you like to use ESLint? · style
✔ What type of modules does your project use? · esm
✔ Which framework does your project use? · none
✔ Does your project use TypeScript? · javascript

Answer to the question "Where does your code run?" is ignored and eslint/config proceeds as if "browser" answer was given.

What did you expect to happen?

✔ Where does your code run? · node

What actually happened?

✔ Where does your code run? · browser

Link to Minimal Reproducible Example

http://example.com

Participation

Additional comments

Reproducible 100%. Previous answers don't matter. Pressing "a", "i" or spacebar during that question prompt are ignored - nothing changes in UI.

aladdin-add commented 6 months ago

Duplicate of https://github.com/eslint/create-config/issues/74

aladdin-add commented 6 months ago

please note it's a multi-selection.