Skip to content
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

linter-xo does not report problems #73

Closed
PopGoesTheWza opened this issue Jan 10, 2020 · 5 comments
Closed

linter-xo does not report problems #73

PopGoesTheWza opened this issue Jan 10, 2020 · 5 comments

Comments

@PopGoesTheWza
Copy link

I have the latest xo cli installed and working from the terminal. package.json has xo settings:

  "xo": {
    "envs": [
      "node"
    ],
    "extends": "xo-typescript",
    "extensions": [
      "ts"
    ],
    "space": 2
  }

But inside vscode, does not report anything to the 'problems' viewport, and invoking 'Fix all auto-fixable problems' from the command palette does not fix anything.

@papb
Copy link
Contributor

papb commented Jan 25, 2020

I had the same problem, I just found out that you must set the "xo.enable" in your VSCode settings:

{
  "xo.enable": true
}

...regardless of what's in your package.json.

@PopGoesTheWza
Copy link
Author

@papb I had it set globally in vscode... with no luck... yet.

@papb
Copy link
Contributor

papb commented Jan 29, 2020

@PopGoesTheWza Really? Weird... Good luck... Perhaps try reinstalling extensions, or even reinstalling VSCode itself, I don't know...

@PopGoesTheWza
Copy link
Author

With no clear explanation, it finally started to report problems into the vscode Problems window.

It suddenly "kicked-in" during an hours long vscode session. I had xo already setup (but no reporting in vscode)

  • xo@0.27.2 installed both globally and as local dependency in my project folder
  • vscode-linter-xo extension installed and enabled in vscode global settings
  • .xo-config.json

My .xo-config.json:

{
  "ignores": [".js"],
  "space": 2,
  "prettier": true
}

Now there's still something bothering me, though it may be WAD, but problems reported do not offer option for quick-fix nor to open the rule documentation like eslint and tslint do.

@yakov116
Copy link

yakov116 commented Aug 3, 2021

@PopGoesTheWza still have an issue?

@spence-s spence-s closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants