-
Notifications
You must be signed in to change notification settings - Fork 336
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
vscode-eslint and eslint from command line following different formatting rules #1256
Comments
Update: I just defined a script in |
Is the eslint version the same in both cases? |
Surprisingly, it is not.
versus
So probably I should remove my global installation of eslint? |
Having eslint installed per-project and using always that surely will give more predictable results. Especially with multiple people working on the same project. |
Thank you, I just did this. Now I need to type (Also I found that for whatever reason, there was a |
I have set up eslint in my TypeScript project using the
--init
argument, created an.eslintrc.yml
, and configured the VS Code extension with these settings:Unfortunately, there is one file in my repository that is being judged differently by the CLI and the extension:
If I now reformat the file using the extension and then run
$ eslint . --ext=.js,.ts,.json
, I get 34 errors in the console each of them stating:tl;dr, it looks as if vscode-eslint and eslint would follow a different set of rules. This is a problem for me because I want to use the CLI on CI whereas, in VS Code, I prefer the extension.
What could I have done wrong? Is there any other option I need to set in the
settings.json
? Or could this be a bug in the extension? Thanks in advance!The text was updated successfully, but these errors were encountered: