ci: Lint with XO

This commit is contained in:
Pierre Vanduynslager
2017-11-21 20:55:47 -05:00
parent d548edcf37
commit facdadaddb
10 changed files with 68 additions and 73 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
// Bad news: We have to write plain ES5 in this file
// Good news: It's the only file of the entire project
// eslint-disable-next-line no-var
var semver = require('semver');
if (semver.lt(process.version, '8.0.0')) {
@@ -22,7 +23,7 @@ npx is bundled with npm >= 5.4, or available via npm. More info: npm.im/npx`
process.exit(1);
}
// node 8+ from this point on
// Node 8+ from this point on
require('../cli')().catch(() => {
process.exitCode = 1;
});