You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Avoid running XO on older Node.js versions
* xo@^0.17.0
* Split up cli.js
Move the actual implementation into lib/cli.js to avoid top-level
returns. xo@^0.17.0 cannot parse the file with those returns present.
Throw errors from lib/cli.js and write them to stderr in cli.js before
exiting. XO doesn't appreciate process.exit() calls in modules.
Note that the error for invalid Babel config is now written to stderr,
which seems like an improvement to me.
* Actually register loud-rejection
console.error(' '+colors.error(figures.cross)+' The TAP reporter is not available when using watch mode.');
123
-
process.exit(1);
124
-
}
125
-
126
-
if(hasFlag('--require')||hasFlag('-r')){
127
-
console.error(' '+colors.error(figures.cross)+' The --require and -r flags are deprecated. Requirements should be configured in package.json - see documentation.');
thrownewError(colors.error(figures.cross)+' The TAP reporter is not available when using watch mode.');
95
+
}
96
+
97
+
if(hasFlag('--require')||hasFlag('-r')){
98
+
thrownewError(colors.error(figures.cross)+' The --require and -r flags are deprecated. Requirements should be configured in package.json - see documentation.');
0 commit comments