"use strict";
/*
 * Copyright © 2020 Atomist, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TslintAutofix = void 0;
const spawnAutofix_1 = require("../../../../api-helper/code/autofix/spawnAutofix");
const commonPushTests_1 = require("../../../../api/mapping/support/commonPushTests");
const pushTestUtils_1 = require("../../../../api/mapping/support/pushTestUtils");
const spawn_1 = require("../../npm/spawn");
const nodePushTests_1 = require("../../pushtest/nodePushTests");
const tsPushTests_1 = require("../../pushtest/tsPushTests");
exports.TslintAutofix = spawnAutofix_1.spawnAutofix("tslint", pushTestUtils_1.allSatisfied(tsPushTests_1.IsTypeScript, nodePushTests_1.IsNode, commonPushTests_1.hasFile("tslint.json")), { ignoreFailure: true }, { command: "npm", args: ["run", "--if-present", "lint:fix", "--", "--force"], options: spawn_1.DevelopmentEnvOptions });
//# sourceMappingURL=tslintAutofix.js.map