mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
81e76857da
commit
ef10ebe97c
40 changed files with 137 additions and 134 deletions
|
|
@ -1,7 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const DIR_SERVER = '../server/';
|
||||
|
||||
import {createRequire} from 'module';
|
||||
import {promisify} from 'util';
|
||||
import tryToCatch from 'try-to-catch';
|
||||
|
|
@ -14,13 +12,17 @@ import {
|
|||
configPath,
|
||||
} from '../server/config.js';
|
||||
|
||||
const config = createConfig({
|
||||
configPath,
|
||||
});
|
||||
|
||||
import env from '../server/env.js';
|
||||
import prefixer from '../server/prefixer.js';
|
||||
|
||||
process.on('unhandledRejection', exit);
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
const Info = require('../package.json');
|
||||
|
||||
const simport = createSimport(import.meta.url);
|
||||
|
||||
const choose = (a, b) => {
|
||||
if (a === undefined)
|
||||
return b;
|
||||
|
|
@ -28,12 +30,11 @@ const choose = (a, b) => {
|
|||
return a;
|
||||
};
|
||||
|
||||
process.on('unhandledRejection', exit);
|
||||
const config = createConfig({
|
||||
configPath,
|
||||
});
|
||||
|
||||
const simport = createSimport(import.meta.url);
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
const Info = require('../package.json');
|
||||
const DIR_SERVER = '../server/';
|
||||
|
||||
const maybeRoot = (a) => {
|
||||
if (a === '.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue