Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jan 3, 2025
1 parent 13cb970 commit 5d22722
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .nycrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"**/*.spec.js",
"**/fixture",
"**/*.*.js",
"**/*.config.*"
"**/*.config.*",
"**/test/**"
],
"branches": 100,
"lines": 100,
Expand Down
2 changes: 1 addition & 1 deletion .webpack/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const {
join,
} = require('node:path');

const {env} = require('node:process');
const {EnvironmentPlugin} = require('webpack');
const WebpackBar = require('webpackbar');

const ServiceWorkerWebpackPlugin = require('serviceworker-webpack-plugin');

const {env} = require('node:process');
const modules = './modules';
const dirModules = './client/modules';
const dir = './client';
Expand Down
2 changes: 1 addition & 1 deletion client/dom/current-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/* global DOM */
/* global CloudCmd */
const {atob, btoa} = require('../../common/base64');
const createElement = require('@cloudcmd/create-element');
const {atob, btoa} = require('../../common/base64');

const {encode, decode} = require('../../common/entity');

Expand Down
2 changes: 1 addition & 1 deletion client/modules/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

CloudCmd.Upload = exports;

const createElement = require('@cloudcmd/create-element');
const Files = require('../dom/files');
const Images = require('../dom/images');
const uploadFiles = require('../dom/upload-files');
const createElement = require('@cloudcmd/create-element');

module.exports.init = async () => {
Images.show.load('top');
Expand Down
2 changes: 1 addition & 1 deletion common/callbackify.spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

const {promisify} = require('node:util');
const tryToCatch = require('try-to-catch');

const {test, stub} = require('supertape');

const callbackify = require('./callbackify');
const {promisify} = require('node:util');

test('cloudcmd: common: callbackify: error', async (t) => {
const promise = stub().rejects(Error('hello'));
Expand Down
6 changes: 4 additions & 2 deletions server/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const path = require('node:path');
const fs = require('node:fs');
const Emitter = require('node:events');
const {homedir} = require('node:os');
const exit = require(`${DIR_SERVER}exit`);

const CloudFunc = require(`${DIR_COMMON}cloudfunc`);
const currify = require('currify');

const wraptile = require('wraptile');
Expand All @@ -21,6 +19,10 @@ const jju = require('jju');
const writejson = require('writejson');
const tryCatch = require('try-catch');
const criton = require('criton');
const exit = require(`${DIR_SERVER}exit`);

const CloudFunc = require(`${DIR_COMMON}cloudfunc`);

const DIR = `${DIR_SERVER}../`;
const HOME = homedir();

Expand Down
2 changes: 1 addition & 1 deletion server/env.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

const {env} = require('node:process');
const snake = require('just-snake-case');

const {env} = require('node:process');
const up = (a) => a.toUpperCase();

module.exports = parse;
Expand Down
1 change: 0 additions & 1 deletion test/common/cloudfunc.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ test('cloudfunc: render', (t) => {

if (isNotOk) {
console.log(`Error in char number: ${i}\n`, `Expect: ${Expect.substr(i)}\n`, `Result: ${result.substr(i)}`);

console.log('buildFromJSON: Not OK');
}

Expand Down

0 comments on commit 5d22722

Please sign in to comment.