Skip to content

Commit

Permalink
chore: update linter and fix process import
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Jan 19, 2024
1 parent bb985c5 commit 20fbb35
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
25 changes: 13 additions & 12 deletions frontend/app/scripts/contract.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env node

const path = require('node:path');
const process = require('node:process');
const { startAndTest } = require('start-server-and-test');
const { ArgumentParser } = require('argparse');

Expand Down Expand Up @@ -35,19 +36,19 @@ if (spec)
test += ` --spec **/${spec}`;

async function run() {
startAndTest({
services,
test,
namedArguments: { expect: 200 },
})
.then(() => {
info('Execution completed successfully');
process.exit(0);
})
.catch(() => {
console.error('Command execution failed');
process.exit(1);
try {
await startAndTest({
services,
test,
namedArguments: { expect: 200 },
});
info('Execution completed successfully');
process.exit(0);
}
catch (error) {
console.error('Command execution failed', error);
process.exit(1);
}
}

// re-evaluate after moving to mjs or ts
Expand Down
1 change: 1 addition & 0 deletions frontend/app/scripts/start-mocked-backend.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { spawn } = require('node:child_process');
const process = require('node:process');
const fs = require('node:fs');
const path = require('node:path');

Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"devDependencies": {
"@intlify/eslint-plugin-vue-i18n": "2.0.0",
"@rotki/eslint-config": "2.1.0",
"@rotki/eslint-config": "2.2.0",
"@rotki/eslint-plugin": "0.0.3",
"argparse": "2.0.1",
"dotenv": "14.3.2",
Expand Down
8 changes: 4 additions & 4 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 20fbb35

Please sign in to comment.