UNPKG

@atomist/sdm-pack-node

Version:

Extension pack for an Atomist SDM to work with Node.js projects

27 lines 1.41 kB
"use strict"; /* * Copyright © 2019 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 }); const sdm_1 = require("@atomist/sdm"); const npmBuilder_1 = require("../../build/npmBuilder"); const nodePushTests_1 = require("../../pushtest/nodePushTests"); const tsPushTests_1 = require("../../pushtest/tsPushTests"); // TODO: do not expect that everyone has named this task "lint:fix" // or at least check whether they have exports.TslintAutofix = sdm_1.spawnAutofix("tslint", sdm_1.allSatisfied(tsPushTests_1.IsTypeScript, nodePushTests_1.IsNode, sdm_1.hasFile("tslint.json")), { ignoreFailure: true }, // Run this with --force to force return code 0 to commit made lint fixes { command: "npm", args: ["run", "lint:fix", "--force"], options: npmBuilder_1.DevelopmentEnvOptions }); //# sourceMappingURL=tslintAutofix.js.map