UNPKG

@gdjiami/cli

Version:

CLI for build front end project.

19 lines (18 loc) 919 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var fs_extra_1 = tslib_1.__importDefault(require("fs-extra")); var chalk_1 = tslib_1.__importDefault(require("chalk")); function getTslintConfig(configPath, enviroments) { if (enviroments.UNSAFE_DISABLE_TSLINT === 'true') { console.log(chalk_1.default.yellow("\u26A0\uFE0F Warning: " + chalk_1.default.cyan('UNSAFE_DISABLE_TSLINT') + " was turn on. Please follow the team development guidelines")); return false; } if (!fs_extra_1.default.existsSync(configPath)) { // TODO: chalk_1.default.yellow("\u26A0\uFE0F Warning: tslint not found in " + chalk_1.default.cyan(configPath) + ". type " + chalk_1.default.blueBright('jm create-tslint') + " to create one."); return false; } return configPath; } exports.default = getTslintConfig;