mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore: lint
This commit is contained in:
parent
8e25a02568
commit
88da092fdb
38 changed files with 125 additions and 124 deletions
|
|
@ -3,14 +3,14 @@
|
|||
const fs = require('fs');
|
||||
const tryCatch = require('try-catch');
|
||||
|
||||
const DIR = __dirname + '/../../';
|
||||
const COMMONDIR = DIR + 'common/';
|
||||
const DIR = `${__dirname}/../../`;
|
||||
const COMMONDIR = `${DIR}common/`;
|
||||
const {
|
||||
time,
|
||||
timeEnd,
|
||||
} = require(COMMONDIR + 'util');
|
||||
} = require(`${COMMONDIR}util`);
|
||||
|
||||
const CloudFuncPath = COMMONDIR + 'cloudfunc';
|
||||
const CloudFuncPath = `${COMMONDIR}cloudfunc`;
|
||||
|
||||
const CloudFunc = require(CloudFuncPath);
|
||||
|
||||
|
|
@ -20,10 +20,10 @@ const {reRequire} = require('mock-require');
|
|||
const htmlLooksLike = require('html-looks-like');
|
||||
|
||||
const readFilesSync = require('@cloudcmd/read-files-sync');
|
||||
const TMPLDIR = DIR + 'tmpl/';
|
||||
const TMPLDIR = `${DIR}tmpl/`;
|
||||
|
||||
const FS_DIR = TMPLDIR + 'fs/';
|
||||
const EXPECT_PATH = __dirname + '/cloudfunc.html';
|
||||
const FS_DIR = `${TMPLDIR}fs/`;
|
||||
const EXPECT_PATH = `${__dirname}/cloudfunc.html`;
|
||||
|
||||
const addHBS = (a) => `${a}.hbs`;
|
||||
const TMPL = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue