From 225a904ede26d529f8f2e1bd42039ee1a6746520 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 30 Oct 2018 02:24:10 -0500 Subject: [PATCH] fix: Allow to use lint-staged on CI (#523) --- .eslintrc.json | 3 ++- index.js | 6 +++++- package.json | 3 --- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 2fe106bd4..795eb8ea4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -21,6 +21,7 @@ } } ], - "prettier/prettier": "off" + "prettier/prettier": "off", + "node/no-unsupported-features": ["error", "8.6.0"] } } diff --git a/index.js b/index.js index 270520b9e..9567986d1 100755 --- a/index.js +++ b/index.js @@ -3,7 +3,11 @@ 'use strict' const pkg = require('./package.json') -require('please-upgrade-node')(pkg) +require('please-upgrade-node')({ + engines: { + node: '>=8.6.0' + } +}) const cmdline = require('commander') const debugLib = require('debug') diff --git a/package.json b/package.json index ddb32fb96..047da1ab3 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,6 @@ "Lufty Wiranda ", "Suhas Karanth " ], - "engines": { - "node": ">=8.6.0" - }, "bin": "index.js", "files": ["index.js", "src"], "scripts": {