sort imports

This commit is contained in:
Labhansh Agrawal 2023-07-25 23:00:19 +05:30
parent 692f94a87a
commit 36ff6e9b95
75 changed files with 372 additions and 241 deletions

View file

@ -2,10 +2,12 @@
/* eslint-disable @typescript-eslint/no-unsafe-return */
import fs from 'fs';
import os from 'os';
import path from 'path';
import got from 'got';
import registryUrlModule from 'registry-url';
const registryUrl = registryUrlModule();
import path from 'path';
// If the user defines XDG_CONFIG_HOME they definitely want their config there,
// otherwise use the home directory in linux/mac and userdata in windows

View file

@ -1,17 +1,20 @@
// This is a CLI tool, using console is OK
/* eslint no-console: 0 */
import type {SpawnOptions} from 'child_process';
import {spawn, exec} from 'child_process';
import {isAbsolute, resolve} from 'path';
import type {SpawnOptions} from 'child_process';
import {existsSync} from 'fs';
import {version} from '../app/package.json';
import {isAbsolute, resolve} from 'path';
import {promisify} from 'util';
import args from 'args';
import chalk from 'chalk';
import open from 'open';
import _columnify from 'columnify';
import got from 'got';
import open from 'open';
import ora from 'ora';
import {version} from '../app/package.json';
import * as api from './api';
let commandPromise: Promise<void> | undefined;