Skip to content

Commit 45136fd

Browse files
authored
Merge pull request #237 from crazy-max/update-dev-deps
update dev dependencies
2 parents 6b85f87 + 3bbb6ed commit 45136fd

File tree

8 files changed

+1728
-1483
lines changed

8 files changed

+1728
-1483
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/* eslint-disable @typescript-eslint/no-require-imports */
2+
const {defineConfig, globalIgnores} = require('eslint/config');
3+
const {fixupConfigRules, fixupPluginRules} = require('@eslint/compat');
4+
const typescriptEslint = require('@typescript-eslint/eslint-plugin');
5+
const jestPlugin = require('eslint-plugin-jest');
6+
const prettier = require('eslint-plugin-prettier');
7+
const globals = require('globals');
8+
const tsParser = require('@typescript-eslint/parser');
9+
const js = require('@eslint/js');
10+
const {FlatCompat} = require('@eslint/eslintrc');
11+
12+
// __dirname and __filename exist natively in CommonJS
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
module.exports = defineConfig([
20+
globalIgnores(['dist/**/*', 'coverage/**/*', 'node_modules/**/*']),
21+
{
22+
// prettier-ignore
23+
extends: fixupConfigRules(
24+
compat.extends(
25+
'eslint:recommended',
26+
'plugin:@typescript-eslint/eslint-recommended',
27+
'plugin:@typescript-eslint/recommended',
28+
'plugin:jest/recommended',
29+
'plugin:prettier/recommended'
30+
)
31+
),
32+
33+
plugins: {
34+
'@typescript-eslint': fixupPluginRules(typescriptEslint),
35+
jest: fixupPluginRules(jestPlugin),
36+
prettier: fixupPluginRules(prettier)
37+
},
38+
39+
languageOptions: {
40+
globals: {
41+
...globals.node,
42+
...globals.jest
43+
},
44+
parser: tsParser,
45+
ecmaVersion: 'latest',
46+
sourceType: 'module'
47+
},
48+
49+
rules: {
50+
'@typescript-eslint/no-require-imports': [
51+
'error',
52+
{
53+
allowAsImport: true
54+
}
55+
]
56+
}
57+
}
58+
]);

jest.config.ts renamed to jest.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import fs from 'fs';
2-
import os from 'os';
3-
import path from 'path';
1+
/* eslint-disable @typescript-eslint/no-require-imports */
2+
const fs = require('fs');
3+
const os = require('os');
4+
const path = require('path');
45

56
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-qemu-action-'));
67

@@ -9,12 +10,11 @@ process.env = Object.assign({}, process.env, {
910
GITHUB_REPOSITORY: 'docker/setup-qemu-action',
1011
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
1112
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
12-
}) as {
13-
[key: string]: string;
14-
};
13+
});
1514

1615
module.exports = {
1716
clearMocks: true,
17+
testEnvironment: 'node',
1818
moduleFileExtensions: ['js', 'ts'],
1919
testMatch: ['**/*.test.ts'],
2020
transform: {

package.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,21 @@
2929
"@docker/actions-toolkit": "^0.67.0"
3030
},
3131
"devDependencies": {
32-
"@types/node": "^20.19.9",
33-
"@typescript-eslint/eslint-plugin": "^7.18.0",
34-
"@typescript-eslint/parser": "^7.18.0",
35-
"@vercel/ncc": "^0.38.3",
36-
"eslint": "^8.57.1",
37-
"eslint-config-prettier": "^9.1.2",
38-
"eslint-plugin-jest": "^28.14.0",
32+
"@eslint/compat": "^2.0.0",
33+
"@eslint/eslintrc": "^3.3.3",
34+
"@eslint/js": "^9.39.2",
35+
"@types/node": "^20.19.27",
36+
"@typescript-eslint/eslint-plugin": "^8.50.0",
37+
"@typescript-eslint/parser": "^8.50.0",
38+
"@vercel/ncc": "^0.38.4",
39+
"eslint": "^9.39.2",
40+
"eslint-config-prettier": "^10.1.8",
41+
"eslint-plugin-jest": "^29.5.0",
3942
"eslint-plugin-prettier": "^5.5.4",
40-
"jest": "^29.7.0",
41-
"prettier": "^3.6.2",
42-
"ts-jest": "^29.4.1",
43+
"jest": "^30.2.0",
44+
"prettier": "^3.7.4",
45+
"ts-jest": "^29.4.6",
4346
"ts-node": "^10.9.2",
44-
"typescript": "^5.9.2"
47+
"typescript": "^5.9.3"
4548
}
4649
}

0 commit comments

Comments
 (0)