Detects if XO is being used and is being used correctly.
{
"name": "foo",
"devDependencies": {
"xo": "*"
}
}
XO
is not being used in thetest
script.
{
"name": "foo",
"scripts": {
"test": "xo --esnext"
},
"devDependencies": {
"xo": "*"
}
}
Specify
XO
configuration via a config object instead of passing it through via the CLI.
{
"name": "foo",
"scripts": {
"test": "xo"
},
"devDependencies": {
"xo": "*"
}
}
{
"name": "foo",
"engines": {
"node": ">=4"
},
"scripts": {
"test": "xo"
},
"devDependencies": {
"xo": "*"
},
"xo": {
"esnext": true
}
}
You can set the required version of XO
.
"xo": ["error", "0.16.0"]