Skip to content

Commit

Permalink
Update xo
Browse files Browse the repository at this point in the history
Closes GH-135.
  • Loading branch information
greenkeeperio-bot authored and wooorm committed Oct 16, 2016
1 parent 3fa1d51 commit 611422b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '0.11'
- '4.0'
- '5.0'
- '6.0'
after_script: bash <(curl -s https://codecov.io/bash)
Expand Down
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var cli = meow({
var globs = ['{docs/**/,doc/**/,}*.{' + extensions.join(',') + '}'];

/* istanbul ignore else - Bug in tests. Something hangs, at least. */
if (cli.input.length) {
if (cli.input.length !== 0) {
globs = cli.input;
}

Expand Down Expand Up @@ -132,7 +132,7 @@ function transform(raw) {

current = current.plugins && current.plugins[filter] && current.plugins[filter].allow;

if (allow.length) {
if (allow.length !== 0) {
plugins[filter] = {allow: [].concat(allow, current || [])};
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"nyc": "^8.0.0",
"remark-cli": "^2.0.0",
"remark-preset-wooorm": "^1.0.0",
"xo": "^0.16.0"
"xo": "^0.17.0"
},
"scripts": {
"build-md": "remark . --quiet --frail",
Expand All @@ -93,6 +93,7 @@
"xo": {
"space": true,
"rules": {
"ava/prefer-async-await": "off",
"max-lines": "off"
},
"ignores": [
Expand Down

0 comments on commit 611422b

Please sign in to comment.