From 5927b958e7e30f75eadb42ff9ee45d4a54e09e86 Mon Sep 17 00:00:00 2001 From: wafuwafu13 Date: Tue, 21 Sep 2021 21:33:50 +0900 Subject: [PATCH 1/2] Chore: move require --- Makefile.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.js b/Makefile.js index c9b5465e9e1..f90dbf682f5 100644 --- a/Makefile.js +++ b/Makefile.js @@ -10,8 +10,6 @@ // Requirements //------------------------------------------------------------------------------ -require("shelljs/make"); - const checker = require("npm-license"), ReleaseOps = require("eslint-release"), dateformat = require("dateformat"), @@ -27,6 +25,7 @@ const checker = require("npm-license"), { CLIEngine } = require("./lib/cli-engine"), builtinRules = require("./lib/rules/index"); +require("shelljs/make"); /* global target -- global.target is declared in `shelljs/make.js` */ /** * global.target = {}; From f92f5f9df1d4587d50f082b97276b6bd19afa6a1 Mon Sep 17 00:00:00 2001 From: wafuwafu13 Date: Tue, 21 Sep 2021 21:35:03 +0900 Subject: [PATCH 2/2] Chore: remove target.all --- Makefile.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Makefile.js b/Makefile.js index f90dbf682f5..fc6755cd071 100644 --- a/Makefile.js +++ b/Makefile.js @@ -477,10 +477,6 @@ function getBinFile(command) { // Tasks //------------------------------------------------------------------------------ -target.all = function() { - target.test(); -}; - target.lint = function([fix = false] = []) { let errors = 0, lastReturn;