Skip to content

Commit 4a3db9e

Browse files
committed
chore: fix eslint issues
1 parent 318b712 commit 4a3db9e

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@
66
"plugins": [
77
"json",
88
"node"
9-
]
9+
],
10+
"parserOptions": {
11+
"sourceType": "module"
12+
},
13+
"rules": {
14+
"node/no-missing-import": "off",
15+
"node/no-unsupported-features/es-syntax": "off"
16+
}
1017
}

__tests__/problemMatcher.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
let problemMatcher = require('../.github/problem-matcher.json');
32
problemMatcher = problemMatcher.problemMatcher[0];
43

dist/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,5 @@ async function run(){
430430
}
431431
}
432432
run();
433-
var src = run;
434433

435-
module.exports = src;
434+
module.exports = run;

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export default {
1212
format: 'cjs',
1313
preferConst: true,
1414
indent: '\t',
15-
exports: 'auto'
15+
exports: 'default'
1616
}
1717
],
1818
plugins: [
1919
resolve(),
20-
commonjs(),
20+
commonjs({transformMixedEsModules: true}),
2121
json()
2222
]
2323
};

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
'use strict';
21
const fs = require('fs').promises;
32
const path = require('path');
43
const {getInput, setFailed} = require('@actions/core');
@@ -30,4 +29,4 @@ async function run(){
3029
}
3130
}
3231
run();
33-
module.exports = run;
32+
export default run;

0 commit comments

Comments
 (0)