From 2c0d7e0664155245c669913793e87aee0aa35b4e Mon Sep 17 00:00:00 2001 From: vadiminc Date: Sun, 28 Jan 2024 13:01:09 +0100 Subject: [PATCH] fix lint --- dist/tsc/src/commands/actions/validators/file.js | 1 + dist/tsc/src/commands/actions/validators/file.js.map | 2 +- src/commands/actions/validators/file.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/tsc/src/commands/actions/validators/file.js b/dist/tsc/src/commands/actions/validators/file.js index 4a8db71..870bfb9 100644 --- a/dist/tsc/src/commands/actions/validators/file.js +++ b/dist/tsc/src/commands/actions/validators/file.js @@ -2,6 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.sanitizePath = exports.jsonFileValidator = exports.fileExistsValidator = void 0; const tslib_1 = require("tslib"); +/* eslint-disable no-useless-escape */ const fs_1 = tslib_1.__importDefault(require("fs")); const path_1 = tslib_1.__importDefault(require("path")); const fileExistsValidator = (filePath, message = '') => { diff --git a/dist/tsc/src/commands/actions/validators/file.js.map b/dist/tsc/src/commands/actions/validators/file.js.map index 73380bd..650c179 100644 --- a/dist/tsc/src/commands/actions/validators/file.js.map +++ b/dist/tsc/src/commands/actions/validators/file.js.map @@ -1 +1 @@ -{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/validators/file.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AACpB,wDAAwB;AAEjB,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,OAAO,GAAG,EAAE,EAAoB,EAAE;IACtF,QAAQ,GAAG,IAAA,oBAAY,EAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACjD,IAAI;QACF,YAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;KACb;IAAC,OAAO,KAAU,EAAE;QACnB,gDAAgD;QAChD,OAAO,OAAO,IAAI,KAAK,CAAC,OAAO,IAAI,oCAAoC,CAAC;KACzE;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AG,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;SACzG;QACD,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,aAAa,CAAC,CAAC;KAC9D;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"} \ No newline at end of file +{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/validators/file.ts"],"names":[],"mappings":";;;;AAAA,sCAAsC;AACtC,oDAAoB;AACpB,wDAAwB;AAEjB,MAAM,mBAAmB,GAAG,CAAC,QAAgB,EAAE,OAAO,GAAG,EAAE,EAAoB,EAAE;IACtF,QAAQ,GAAG,IAAA,oBAAY,EAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IACjD,IAAI;QACF,YAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;KACb;IAAC,OAAO,KAAU,EAAE;QACnB,gDAAgD;QAChD,OAAO,OAAO,IAAI,KAAK,CAAC,OAAO,IAAI,oCAAoC,CAAC;KACzE;AACH,CAAC,CAAC;AATW,QAAA,mBAAmB,uBAS9B;AAEK,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,OAAO,GAAG,EAAE,EAAoB,EAAE;IACpF,IAAI,YAAY,CAAC;IACjB,QAAQ,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAC,CAAC;IAElC,IAAI;QACF,YAAY,GAAG,YAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;KACjE;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,OAAO,IAAI,yCAAyC,CAAC;KAC7D;IACD,IAAI;QACF,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KAC1B;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,kBAAkB,QAAQ,wBAAwB,CAAC;KAC3D;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAfW,QAAA,iBAAiB,qBAe5B;AAEK,MAAM,YAAY,GAAG,CAAC,SAAiB,EAAU,EAAE;IACxD,sDAAsD;IACtD,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAE3D,4FAA4F;IAC5F,IAAI,aAAa,GAAG,cAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAEjD,+EAA+E;IAC/E,qGAAqG;IACrG,yDAAyD;IACzD,aAAa,GAAG,aAAa,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAC;IAEpE,gEAAgE;IAChE,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE;QAChC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAC/B,MAAM,gBAAgB,GAAG,aAAa,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC7D,IAAI,gBAAgB,EAAE;YACpB,2CAA2C;YAC3C,aAAa,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;SACzG;QACD,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,aAAa,CAAC,CAAC;KAC9D;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AAxBW,QAAA,YAAY,gBAwBvB"} \ No newline at end of file diff --git a/src/commands/actions/validators/file.ts b/src/commands/actions/validators/file.ts index e8228b6..33d97f8 100644 --- a/src/commands/actions/validators/file.ts +++ b/src/commands/actions/validators/file.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-useless-escape */ import fs from 'fs'; import path from 'path';