Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>Linter XONew to Visual Studio Code? Get it now.
Linter XO

Linter XO

Bryan Chen

|
1,403 installs
| (3) | Free
Integrates XO linter into VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

linter-xo-2

Build Status

Linter for XO

Usage

This extension requires XO to be install XO to be installed as a dependency or dev dependency.

$ npm install --save-dev xo

In Visual Studio Code, press F1 and narrow down the list of commands by typing extension. Pick Extensions: Install Extension.

Simply search for the linter-xo-2 extension from the list and install it.

Fix issues

Press F1 and choose XO: Fix all auto-fixable problems

Tip: Bind a keyboard shortcut to xo.fix

Settings Options

This extension contributes the following variables to the settings:

  • xo.enable: Enable/Disable XO. It is enabled by default.
  • xo.options: Extra options that will be passed to XO. Default to empty object. An example to disable semi colon is:
{
  "xo.options": {
    "semicolon": false
  }
}
  • xo.validate: An array of language identifiers specify the files to be validated. It defaults to ["javascript", "javascriptreact"]
    • To enable XO for TypeScript use "[ "javascript", "javascriptreact", "typescript", "typescriptreact" ]
    • To enable XO for Vue.js use [ "javascript", "javascriptreact", "vue" ]
  • xo.format.enable: Enable/Disable XO formatter integration which uses xo --fix as formatter. Requires xo.enable to be true. It is disabled by default.

TODOs

  • Code Action: Disable rule on this line
    • Currently doesn't support to disable multiple rules in a single line
    • Need to detect a disable rule already present and adjust the fix for it
  • Run auto fix multiple times until all issus are fixed

Credits

This is originally fork of linter-xo by SamVerschueren

The new code is heavily inspired by vscode-eslint

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft