Skip to content

Commit

Permalink
ESLint churn
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Oct 26, 2021
1 parent 350e360 commit 037687f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .eslintrc.js
Expand Up @@ -6,7 +6,7 @@ module.exports = {
sourceType: 'module', // Allows for the use of imports
},
extends: [
'prettier/@typescript-eslint',
'prettier',
'plugin:prettier/recommended', // format sources with prettier.io
// Uses the recommended rules from the @typescript-eslint/eslint-plugin
'plugin:@typescript-eslint/recommended',
Expand Down Expand Up @@ -36,7 +36,8 @@ module.exports = {
"unix"
],
"no-unused-expressions": 0,
"@typescript-eslint/no-floating-promises": "warn"
"@typescript-eslint/no-floating-promises": "warn",
"jest/no-conditional-expect": 0
},
env: {
jest: true
Expand Down
12 changes: 3 additions & 9 deletions src/cardanoLauncher.ts
Expand Up @@ -190,10 +190,8 @@ export class Launcher {
*/
constructor(config: LaunchConfig, logger: Logger = console) {
logger.debug('Launcher init');
const {
childProcessLogWriteStreams,
installSignalHandlers = true,
} = config;
const { childProcessLogWriteStreams, installSignalHandlers = true } =
config;
this.logger = logger;

const start = Launcher.makeServiceCommands(config, logger);
Expand Down Expand Up @@ -391,11 +389,7 @@ export class Launcher {
): Promise<StartService> {
switch (config.nodeConfig.kind) {
case 'shelley':
return startCardanoNode(
baseDir,
config.nodeConfig,
config.networkName
);
return startCardanoNode(baseDir, config.nodeConfig, config.networkName);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion test/integration.test.ts
Expand Up @@ -250,7 +250,8 @@ describe('Starting cardano-wallet (and its node)', () => {

await launcher.start();
const walletApi = launcher.walletBackend.api;
const nodeConfig = launcher.nodeService.getConfig() as cardanoNode.NodeStartService;
const nodeConfig =
launcher.nodeService.getConfig() as cardanoNode.NodeStartService;
for (const host of listExternalAddresses()) {
console.log(`Testing ${host}`);
expect(
Expand Down

0 comments on commit 037687f

Please sign in to comment.