mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: cloudcmd: actions: lint ☘️
This commit is contained in:
parent
2ae6ad34fc
commit
79fb49479e
14 changed files with 18 additions and 17 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import {run, cutEnv} from 'madrun';
|
||||
import process from 'node:process';
|
||||
import {run, cutEnv} from 'madrun';
|
||||
|
||||
const testEnv = {
|
||||
THREAD_IT_COUNT: 0,
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import {promisify} from 'node:util';
|
||||
import process from 'node:process';
|
||||
import tryToCatch from 'try-to-catch';
|
||||
import {createSimport} from 'simport';
|
||||
import minor from 'minor';
|
||||
import _place from 'place';
|
||||
import rendy from 'rendy';
|
||||
import shortdate from 'shortdate';
|
||||
import process from 'node:process';
|
||||
|
||||
const simport = createSimport(import.meta.url);
|
||||
const place = promisify(_place);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const {registerSW, listenSW} = require('./sw/register');
|
|||
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
|
||||
module.exports = window.CloudCmd = async (config) => {
|
||||
module.exports = async (config) => {
|
||||
window.Util = require('../common/util');
|
||||
window.CloudFunc = require('../common/cloudfunc');
|
||||
|
||||
|
|
@ -27,6 +27,7 @@ module.exports = window.CloudCmd = async (config) => {
|
|||
|
||||
window.CloudCmd.init(prefix, config);
|
||||
};
|
||||
window.CloudCmd = module.exports;
|
||||
|
||||
function getPrefix(prefix) {
|
||||
if (!prefix)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {dirname} from 'node:path';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import test from 'supertape';
|
||||
import fs from 'node:fs';
|
||||
import test from 'supertape';
|
||||
import {getColumns, isDev} from './columns.mjs';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import Config from '../config.js';
|
||||
import {once} from 'node:events';
|
||||
import test from 'supertape';
|
||||
import io from 'socket.io-client';
|
||||
import Config from '../config.js';
|
||||
import {connect} from '../../test/before.mjs';
|
||||
|
||||
const config = Config.createConfig();
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ import wraptile from 'wraptile';
|
|||
import squad from 'squad';
|
||||
import fullstore from 'fullstore';
|
||||
import io from 'socket.io-client';
|
||||
import _forEachKey from 'for-each-key';
|
||||
import log from './log.mjs';
|
||||
import env from '../env.js';
|
||||
import _forEachKey from 'for-each-key';
|
||||
|
||||
const noop = () => {};
|
||||
const forEachKey = currify(_forEachKey);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import process from 'node:process';
|
||||
import test from 'supertape';
|
||||
import {promisify} from 'node:util';
|
||||
import test from 'supertape';
|
||||
import tryToCatch from 'try-to-catch';
|
||||
import {connect} from '../../test/before.mjs';
|
||||
import {createConfigManager} from '../cloudcmd.mjs';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {dirname} from 'node:path';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import test from 'supertape';
|
||||
import fs from 'node:fs';
|
||||
import test from 'supertape';
|
||||
import {getThemes, isDev} from './theme.mjs';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import {dirname, join} from 'node:path';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import {readFileSync} from 'node:fs';
|
||||
import {test, stub} from 'supertape';
|
||||
import serveOnce from 'serve-once';
|
||||
import threadIt from 'thread-it';
|
||||
import userMenu from './user-menu.mjs';
|
||||
import {readFileSync} from 'node:fs';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import process from 'node:process';
|
||||
import http from 'node:http';
|
||||
import os from 'node:os';
|
||||
import {promisify} from 'node:util';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import {dirname} from 'node:path';
|
||||
import express from 'express';
|
||||
import {Server} from 'socket.io';
|
||||
import writejson from 'writejson';
|
||||
import readjson from 'readjson';
|
||||
import {promisify} from 'node:util';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import {dirname} from 'node:path';
|
||||
import cloudcmd from '../server/cloudcmd.mjs';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {dirname, join} from 'node:path';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import serveOnce from 'serve-once';
|
||||
import {mkdirSync} from 'node:fs';
|
||||
import serveOnce from 'serve-once';
|
||||
import test from 'supertape';
|
||||
import {rimraf} from 'rimraf';
|
||||
import cloudcmd from '../../server/cloudcmd.mjs';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import wait from '@iocmd/wait';
|
||||
import {EventEmitter} from 'node:events';
|
||||
import wait from '@iocmd/wait';
|
||||
import {test, stub} from 'supertape';
|
||||
import serveOnce from 'serve-once';
|
||||
import cloudcmd from '../../server/cloudcmd.mjs';
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import fs from 'node:fs';
|
||||
import {join, dirname} from 'node:path';
|
||||
import {promisify} from 'node:util';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import test from 'supertape';
|
||||
import tar from 'tar-stream';
|
||||
import gunzip from 'gunzip-maybe';
|
||||
import pullout from 'pullout';
|
||||
import cloudcmd from '../../server/cloudcmd.mjs';
|
||||
import serveOnce from 'serve-once';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import cloudcmd from '../../server/cloudcmd.mjs';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import path, {dirname} from 'node:path';
|
||||
import {once} from 'node:events';
|
||||
import test from 'supertape';
|
||||
import {fileURLToPath} from 'node:url';
|
||||
import {createRequire} from 'node:module';
|
||||
import test from 'supertape';
|
||||
import io from 'socket.io-client';
|
||||
import {connect} from '../before.mjs';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue