From 9ee4d0f24cdf6a39def467b88e8504c28be15cfd Mon Sep 17 00:00:00 2001 From: George Cheng Date: Thu, 30 Aug 2018 11:24:05 +0800 Subject: [PATCH] Silently pass in node 4 Since [ESLint 5 no longer support node 4](https://eslint.org/docs/user-guide/migrating-to-5.0.0#-nodejs-4-is-no-longer-supported), standard should silently pass in node 4. --- bin/cmd.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cmd.js b/bin/cmd.js index f37a31bda..7a4ae49fb 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -1,7 +1,7 @@ #!/usr/bin/env node -if (process.version.match(/v(\d+)\./)[1] < 4) { - console.error('standard: Node v4 or greater is required. `standard` did not run.') +if (process.version.match(/v(\d+)\./)[1] < 6) { + console.error('standard: Node 6 or greater is required. `standard` did not run.') } else { var opts = require('../options') require('standard-engine').cli(opts)