Skip to content

xojs/create-xo

Repository files navigation

create-xo

Add XO to your project

CLI

npm init xo [options]

Example:

npm init xo --space --no-semicolon

API

Usage

import createXo from 'create-xo';

await createXo();

createXo(options?)

Returns a Promise.

options

Type: object

cwd

Type: string
Default: process.cwd()

The current working directory.

args

Type: string[]
Default: CLI arguments (process.argv.slice(2))

The options to put in XO's config in package.json.

For instance, with the arguments ['--space', '--env=node'], the following will be put in package.json:

{
	"name": "awesome-package",
	"xo": {
		"space": true,
		"envs": [
			"node"
		]
	}
}

Sponsor this project

 

Packages

No packages published

Contributors 10

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy