Skip to content

Commit c1954c0

Browse files
fix: add .js extensions to ES module imports and disable linter rule
1 parent 3240db6 commit c1954c0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

dapp/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
},
77
"extends": ["airbnb-base", "prettier", "plugin:sonarjs/recommended"],
88
"rules": {
9-
"sonarjs/cognitive-complexity": "warn"
9+
"sonarjs/cognitive-complexity": "warn",
10+
"import/extensions": "off"
1011
},
1112
"env": {
1213
"jest": true

dapp/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import start from './executeTask';
1+
import start from './executeTask.js';
22

33
start().catch((error) => {
44
console.error(`Error: ${error.message}`);

dapp/src/executeTask.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { IExecDataProtectorDeserializer } from '@iexec/dataprotector-deserializer';
22
import { promises as fs } from 'fs';
3-
import { decryptContent, downloadEncryptedContent } from './decryptContent';
4-
import sendTelegram from './telegramService';
3+
import { decryptContent, downloadEncryptedContent } from './decryptContent.js';
4+
import sendTelegram from './telegramService.js';
55
import {
66
validateAppSecret,
77
validateProtectedData,
88
validateRequesterSecret,
99
validateWorkerEnv,
10-
} from './validation';
10+
} from './validation.js';
1111

1212
async function writeTaskOutput(path, message) {
1313
try {

0 commit comments

Comments
 (0)