Skip to content

Commit c7c4c00

Browse files
authored
Merge pull request #468 from crazy-max/update-dev-deps
update dev dependencies
2 parents 8d2750c + 7a35da2 commit c7c4c00

File tree

8 files changed

+1740
-1570
lines changed

8 files changed

+1740
-1570
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+
]);
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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

5-
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-buildx-action-')).split(path.sep).join(path.posix.sep);
6+
const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-setup-buildx-action-'));
67

78
process.env = Object.assign({}, process.env, {
89
TEMP: tmpDir,
910
GITHUB_REPOSITORY: 'docker/setup-buildx-action',
10-
RUNNER_TEMP: path.join(tmpDir, 'runner-temp').split(path.sep).join(path.posix.sep),
11-
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache').split(path.sep).join(path.posix.sep)
12-
}) as {
13-
[key: string]: string;
14-
};
11+
RUNNER_TEMP: path.join(tmpDir, 'runner-temp'),
12+
RUNNER_TOOL_CACHE: path.join(tmpDir, 'runner-tool-cache')
13+
});
1514

1615
module.exports = {
1716
clearMocks: true,
17+
testEnvironment: 'node',
1818
moduleFileExtensions: ['js', 'ts'],
1919
testMatch: ['**/*.test.ts'],
2020
transform: {
@@ -24,6 +24,6 @@ module.exports = {
2424
'^csv-parse/sync': '<rootDir>/node_modules/csv-parse/dist/cjs/sync.cjs'
2525
},
2626
collectCoverageFrom: ['src/**/{!(main.ts),}.ts'],
27-
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__tests__/'],
27+
coveragePathIgnorePatterns: ['lib/', 'node_modules/', '__mocks__/', '__tests__/'],
2828
verbose: true
2929
};

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,22 @@
3030
"js-yaml": "^4.1.0"
3131
},
3232
"devDependencies": {
33+
"@eslint/compat": "^2.0.0",
34+
"@eslint/eslintrc": "^3.3.3",
35+
"@eslint/js": "^9.39.2",
3336
"@types/js-yaml": "^4.0.9",
34-
"@types/node": "^20.19.9",
35-
"@types/uuid": "^10.0.0",
36-
"@typescript-eslint/eslint-plugin": "^7.18.0",
37-
"@typescript-eslint/parser": "^7.18.0",
38-
"@vercel/ncc": "^0.38.3",
39-
"eslint": "^8.57.1",
40-
"eslint-config-prettier": "^9.1.2",
41-
"eslint-plugin-jest": "^28.14.0",
37+
"@types/node": "^20.19.27",
38+
"@typescript-eslint/eslint-plugin": "^8.50.0",
39+
"@typescript-eslint/parser": "^8.50.0",
40+
"@vercel/ncc": "^0.38.4",
41+
"eslint": "^9.39.2",
42+
"eslint-config-prettier": "^10.1.8",
43+
"eslint-plugin-jest": "^29.5.0",
4244
"eslint-plugin-prettier": "^5.5.4",
43-
"jest": "^29.7.0",
44-
"prettier": "^3.6.2",
45-
"ts-jest": "^29.4.1",
45+
"jest": "^30.2.0",
46+
"prettier": "^3.7.4",
47+
"ts-jest": "^29.4.6",
4648
"ts-node": "^10.9.2",
47-
"typescript": "^5.9.2"
49+
"typescript": "^5.9.3"
4850
}
4951
}

0 commit comments

Comments
 (0)