Skip to content
Linter for XO
TypeScript
Branch: master
Clone or download
Latest commit 95c6a8e Dec 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
client
media Convert to single workspace layout Jun 12, 2018
server Fix linting on some configurations - fixes #61 (#65) Jul 6, 2019
.editorconfig
.gitattributes Initial commit Oct 16, 2015
.gitignore Convert to single workspace layout Jun 12, 2018
.npmrc
.travis.yml Run compile and linting on Travis Jun 12, 2018
.vscodeignore
icon.png Convert to single workspace layout Jun 12, 2018
license major refactoring Jul 17, 2016
package.json 2.3.3 Dec 23, 2019
readme.md
screenshot.png explain how to install the extension - fixes #30 Jun 24, 2017
tsconfig.base.json Convert to single workspace layout Jun 12, 2018
tslint.json Convert to single workspace layout Jun 12, 2018
yarn.lock Upgrade packages and regenerate yarn.lock file Oct 24, 2018

readme.md

vscode-linter-xo

Build Status

Linter for XO

Usage

Install XO in your workspace folder.

$ 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 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

Enable the linter in the VS Code Settings.

{
  "xo.enable": true
}

You can also pass in extra options via the settings file.

{
  "xo.enable": true,
  "xo.options": {
    "semicolon": false
  }
}

Or via the package.json file.

{
  "name": "my-pkg",
  "xo": {
    "semicolon": false
  }
}

You can enable the formatter integration to use xo --fix as formatter. Requires xo.enable to be true. It is disabled by default.

{
  "xo.enable": true,
  "xo.format.enable": true
}

License

MIT © Sam Verschueren

You can’t perform that action at this time.