xojs/create-xo

Add XO to your project

46

stars

65

commits

JavaScript

primary language

Nov 4, 2023

updated

github.com/xojs/xo
nodejs
npm-init
npm-package
xo

README

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"
		]
	}
}

Contributors

sindresorhus

55 commits

joakimbeng

2 commits

dflupu

1 commits

Dimava

1 commits

xojs/create-xo

Add XO to your project

46

stars

65

commits

JavaScript

primary language

Nov 4, 2023

updated

github.com/xojs/xo
nodejs
npm-init
npm-package
xo

README

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"
		]
	}
}

Contributors

sindresorhus

55 commits

joakimbeng

2 commits

dflupu

1 commits

Dimava

1 commits

Languages

JavaScript

100.0%