UNPKG

prettierx

Version:

prettierX - a less opinionated fork of the Prettier code formatter

12 lines (9 loc) 407 B
"use strict"; // eslint-disable-next-line no-restricted-modules const { isCI } = require("../common/third-party"); // Some CI pipelines incorrectly report process.stdout.isTTY status, // which causes unwanted lines in the output. An additional check for isCI() helps. // See https://github.com/prettier/prettier/issues/5801 module.exports = function isTTY() { return process.stdout.isTTY && !isCI(); };