Skip to content

Commit dae772a

Browse files
chore: tweaks
1 parent ade6b91 commit dae772a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@
116116
"error",
117117
"tab",
118118
{
119-
"MemberExpression": "off"
119+
"MemberExpression": "off",
120+
"SwitchCase": 1
120121
}
121122
],
122123
"space-before-function-paren": [

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = {
22
clearMocks: true,
3-
moduleFileExtensions: [ 'js', 'ts' ],
4-
setupFiles: [ "<rootDir>/jest.setup.ts" ],
3+
moduleFileExtensions: ['js', 'ts'],
4+
setupFiles: ['<rootDir>/jest.setup.ts'],
55
testEnvironment: 'node',
6-
testMatch: [ '**/*.test.ts' ],
6+
testMatch: ['**/*.test.ts'],
77
testRunner: 'jest-circus/runner',
88
transform: {
99
'^.+\\.ts$': 'ts-jest',

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import path from 'path';
1+
import { resolve } from 'path';
22
import { setFailed } from '@actions/core';
33
import { Context } from '@actions/github/lib/context';
44
import { isTargetEvent } from '@technote-space/filter-github-action';
@@ -9,7 +9,7 @@ import { TARGET_EVENTS } from './constant';
99
const run = async(): Promise<void> => {
1010
const logger = new Logger();
1111
const context = new Context();
12-
ContextHelper.showActionInfo(path.resolve(__dirname, '..'), logger, context);
12+
ContextHelper.showActionInfo(resolve(__dirname, '..'), logger, context);
1313

1414
if (!isTargetEvent(TARGET_EVENTS, context)) {
1515
logger.info('This is not target event.');

0 commit comments

Comments
 (0)