Skip to content

Commit 89eb3ea

Browse files
committed
chore: update dev dependencies
1 parent 19d7282 commit 89eb3ea

File tree

7 files changed

+1033
-632
lines changed

7 files changed

+1033
-632
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist/**
2+
/coverage/**
3+
/node_modules/**

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"env": {
33
"node": true,
4-
"es2021": true,
5-
"jest/globals": true
4+
"es6": true,
5+
"jest": true
66
},
77
"extends": [
88
"eslint:recommended",
9+
"plugin:@typescript-eslint/eslint-recommended",
910
"plugin:@typescript-eslint/recommended",
1011
"plugin:jest/recommended",
1112
"plugin:prettier/recommended"

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ RUN --mount=type=bind,target=.,rw \
7878
GITHUB_TOKEN=$(cat /run/secrets/GITHUB_TOKEN) \
7979
VT_API_KEY=$(cat /run/secrets/VT_API_KEY) \
8080
VT_MONITOR_API_KEY=$(cat /run/secrets/VT_MONITOR_API_KEY) \
81-
yarn run test --coverageDirectory=/tmp/coverage
81+
yarn run test --coverage --coverageDirectory=/tmp/coverage
8282

8383
FROM scratch AS test-coverage
8484
COPY --from=test /tmp/coverage /

jest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
module.exports = {
22
clearMocks: true,
3+
testEnvironment: 'node',
34
moduleFileExtensions: ['js', 'ts'],
45
setupFiles: ['dotenv/config'],
56
testMatch: ['**/*.test.ts'],
67
transform: {
78
'^.+\\.ts$': 'ts-jest'
89
},
10+
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
11+
coveragePathIgnorePatterns: ['dist/', 'node_modules/', '__tests__/'],
912
verbose: true
1013
};

package.json

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@
33
"description": "GitHub Action to upload and scan files with VirusTotal",
44
"main": "src/main.ts",
55
"scripts": {
6-
"build": "ncc build --source-map --minify --license licenses.txt",
7-
"lint": "eslint src/**/*.ts __tests__/**/*.ts",
8-
"format": "eslint --fix src/**/*.ts __tests__/**/*.ts",
9-
"test": "jest --coverage"
6+
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
7+
"lint": "yarn run prettier && yarn run eslint",
8+
"format": "yarn run prettier:fix && yarn run eslint:fix",
9+
"eslint": "eslint --max-warnings=0 .",
10+
"eslint:fix": "eslint --fix .",
11+
"prettier": "prettier --check \"./**/*.ts\"",
12+
"prettier:fix": "prettier --write \"./**/*.ts\"",
13+
"test": "jest",
14+
"all": "yarn run build && yarn run format && yarn test"
1015
},
1116
"repository": {
1217
"type": "git",
@@ -34,18 +39,18 @@
3439
"@types/form-data": "^2.5.0",
3540
"@types/mime": "^3.0.1",
3641
"@types/node": "^20.6.0",
37-
"@typescript-eslint/eslint-plugin": "^5.40.1",
38-
"@typescript-eslint/parser": "^5.40.1",
39-
"@vercel/ncc": "^0.34.0",
40-
"dotenv": "^16.0.3",
41-
"eslint": "^8.26.0",
42-
"eslint-config-prettier": "^8.5.0",
43-
"eslint-plugin-jest": "^27.1.3",
44-
"eslint-plugin-prettier": "^4.2.1",
45-
"jest": "^29.2.1",
46-
"prettier": "^2.7.1",
47-
"ts-jest": "^29.0.3",
42+
"@typescript-eslint/eslint-plugin": "^6.6.0",
43+
"@typescript-eslint/parser": "^6.6.0",
44+
"@vercel/ncc": "^0.38.0",
45+
"dotenv": "^16.3.1",
46+
"eslint": "^8.49.0",
47+
"eslint-config-prettier": "^9.0.0",
48+
"eslint-plugin-jest": "^27.2.3",
49+
"eslint-plugin-prettier": "^5.0.0",
50+
"jest": "^29.6.4",
51+
"prettier": "^3.0.3",
52+
"ts-jest": "^29.1.1",
4853
"ts-node": "^10.9.1",
49-
"typescript": "^4.8.4"
54+
"typescript": "^5.2.2"
5055
}
5156
}

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"compilerOptions": {
3+
"esModuleInterop": true,
34
"target": "es6",
45
"module": "commonjs",
56
"newLine": "lf",
67
"outDir": "./lib",
78
"rootDir": "./src",
8-
"esModuleInterop": false,
99
"forceConsistentCasingInFileNames": true,
10-
"strict": true,
1110
"noImplicitAny": false,
1211
"resolveJsonModule": true,
1312
"useUnknownInCatchVariables": false,

0 commit comments

Comments
 (0)