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
Bug: npm init @eslint/config with "Standard" style generates incorrect setup #71
Comments
Before creating this ticket, I created a similar issue in the eslint-config-standard-with-typescript repository, assuming that its maintainers would know better what to do. And in fact, this is how to fix the problem: which is covered in the docs here: https://typescript-eslint.io/linting/typed-linting/ I believe that the rule @typescript-eslint/dot-notation makes this error trigger. I'm not familiar with the internals of configuration wizard so I'm not ready to provide a PR now. Also, I find it doubtful to not see the proper |
Transferred to the eslint/create-config repo. |
When you choose a shareable config (a style guide), |
Thanks @mdjermanovic, I see the reasoning. ESlint configs have always been tough tho :) I've cloned the repo, investigating the issue now. |
Since |
That's brilliant. |
Closing as this issue is going to be fixed in the In the meantime, you'll need to add |
Environment
Node version: 16.17
npm version: 8.15
Local ESLint version: 8.47
Global ESLint version:
Operating System: Linux Ubuntu 22.04
What parser are you using?
Default (Espree)
What did you do?
I'm running the configuration wizard like this:
That results to this configuration file:
As you can see,
@typescript-eslint/parser
was not installed during the setup process. This looks a little suspicious, taking into account, that other typescript-including wizard paths end up with@typescript-eslint/parser
installed and mentioned in the config.What did you expect to happen?
Working linting
What actually happened?
After it finishes, running
eslint
results to this error:Link to Minimal Reproducible Example
none
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: