Change Request: file glob for eslint --init is hard to figure out #15127
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
cli
Relates to ESLint's command-line interface
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
Stale
Projects
ESLint version
7.32.0
What problem do you want to solve?
When using
eslint --init
on is askedWhich file(s), path(s), or glob(s) should be examined?
. A lot of intuitive inputs likesrc/**/*.(ts|tsx)
,src/**/*.ts
and*ts
all don't work for a project with.ts
and.tsx
files insrc/
under the project root whereyarn run eslint --init
is executed. It's a frustrating first contact with eslint, especially since one has to start over with the questionaire and there's no link to documentation in the output and no--help
for--init
. The only thing I could find rtfm-wise is the issue linked below which didn't help me.The specific error message is
What do you think is the correct solution?
A link to the documentation in the output is slightly hard to maintain but would make a very good first impression of
eslint
.It seems like
--init
could be a subcommand as well, i.e.eslint --init
would becomeeslint init
so that it could provide a--help
. I don't likeeslint --init --help
because it's no a nice cli.Participation
Additional comments
There's another misunderstanding of the question at #7211 which has been handled as support request and been closed without improvement because it hasn't been requested by the reporter.
The text was updated successfully, but these errors were encountered: