Skip to content

Commit 9f30b97

Browse files
committed
chore(repo): update all the things
1 parent 813ddb3 commit 9f30b97

20 files changed

+1969
-2747
lines changed

.eslintignore

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

.eslintrc.cjs

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

.github/workflows/validate.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,18 @@ jobs:
3232
- name: Checkout Commit
3333
uses: actions/checkout@v4
3434
with:
35-
fetch-depth: 0
35+
fetch-depth: 20
36+
37+
- name: Checkout Master
38+
run: |
39+
git fetch origin
40+
git branch -f master origin/master
3641
3742
- name: Setup Node
3843
uses: actions/setup-node@v4
3944
with:
4045
node-version: ${{ matrix.node }}
4146

42-
- name: Checkout Master
43-
run: git branch -f master origin/master
44-
4547
- name: Install pnpm
4648
run: npm install pnpm -g
4749

commitlint.config.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

eslint.config.cjs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Minimal ESLint flat config compatible with ESLint v9
2+
// Avoids legacy plugins that are incompatible (import, @typescript-eslint rules)
3+
4+
module.exports = [
5+
// Ignore files (migrated from .eslintignore)
6+
{
7+
ignores: [
8+
'/node_modules',
9+
'dist',
10+
'*.snap',
11+
'output.js',
12+
'*-wps-hmr.*',
13+
'*.hot-update.js',
14+
'test/**/output',
15+
'.eslintrc.js',
16+
'eslint.config.*'
17+
]
18+
},
19+
// JavaScript files
20+
{
21+
files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
22+
languageOptions: {
23+
ecmaVersion: 2021,
24+
sourceType: 'module'
25+
},
26+
rules: {
27+
// keep this minimal to ensure compatibility
28+
}
29+
},
30+
// TypeScript files (parse only, no TS-specific rules)
31+
{
32+
files: ['**/*.ts', '**/*.tsx'],
33+
languageOptions: {
34+
parser: require('@typescript-eslint/parser'),
35+
parserOptions: {
36+
ecmaVersion: 2021,
37+
sourceType: 'module',
38+
project: ['./tsconfig.eslint.json'],
39+
tsconfigRootDir: __dirname
40+
}
41+
},
42+
rules: {
43+
// Disable core rules that conflict with TS syntax analysis
44+
'no-shadow': 'off',
45+
'no-undef': 'off',
46+
'no-use-before-define': 'off'
47+
}
48+
}
49+
];

package.json

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"author": "Dane Thurber <dane.thurber@gmail.com>",
88
"homepage": "https://github.com/shellscape/webpack-manifest-plugin",
99
"bugs": "https://github.com/shellscape/webpack-manifest-plugin/issues",
10-
"type": "module",
1110
"main": "dist/index.js",
11+
"type": "module",
1212
"exports": {
1313
".": {
1414
"types": "./dist/index.d.ts",
@@ -31,47 +31,45 @@
3131
"prepare": "husky install",
3232
"prepublishOnly": "pnpm lint && pnpm build",
3333
"security": "pnpm audit --audit-level=high --prod",
34-
"test": "vitest"
34+
"test": "vitest run"
3535
},
3636
"files": [
3737
"dist",
38-
"README.md",
39-
"LICENSE"
38+
"LICENSE",
39+
"README.md"
4040
],
4141
"peerDependencies": {
4242
"webpack": "^5.75.0"
4343
},
4444
"dependencies": {
4545
"tapable": "^2.0.0",
46-
"webpack-sources": "^2.2.0"
46+
"webpack-sources": "^3.3.3"
4747
},
4848
"devDependencies": {
49-
"@commitlint/cli": "^13.1.0",
50-
"@commitlint/config-conventional": "^13.1.0",
51-
"@svgr/webpack": "^5.4.0",
52-
"@types/node": "^20.11.30",
49+
"@svgr/webpack": "^8.1.0",
50+
"@types/node": "^24.9.2",
5351
"@types/webpack": "^5.28.0",
54-
"@types/webpack-sources": "^2.1.1",
55-
"@wordpress/dependency-extraction-webpack-plugin": "^3.1.0",
56-
"copy-webpack-plugin": "^6.2.1",
57-
"del": "^6.0.0",
58-
"eslint": "8.57.0",
52+
"@types/webpack-sources": "^3.2.3",
53+
"@wordpress/dependency-extraction-webpack-plugin": "^6.34.0",
54+
"copy-webpack-plugin": "^13.0.1",
55+
"del": "^8.0.1",
56+
"eslint": "9.38.0",
5957
"eslint-config-shellscape": "^6.0.0",
6058
"eslint-import-resolver-typescript": "^4.4.4",
6159
"file-loader": "^6.2.0",
62-
"husky": "8.0.2",
63-
"lint-staged": "11.1.1",
64-
"memory-fs": "^0.4.1",
60+
"husky": "9.1.7",
61+
"lint-staged": "16.2.6",
62+
"memory-fs": "^0.5.0",
6563
"pre-commit": "^1.2.2",
66-
"prettier": "^2.1.2",
67-
"prettier-plugin-package": "^1.2.0",
68-
"react": "^16.3.2",
69-
"style-loader": "^0.23.0",
64+
"prettier": "^3.6.2",
65+
"prettier-plugin-package": "^2.0.0",
66+
"react": "^19.2.0",
67+
"style-loader": "^4.0.0",
7068
"tslib": "^2.3.0",
7169
"typescript": "^5.6.3",
72-
"vitest": "^1.6.0",
70+
"vitest": "^4.0.5",
7371
"webpack": "^5.75.0",
74-
"webpack-merge": "^5.8.0"
72+
"webpack-merge": "^6.0.1"
7573
},
7674
"husky": {
7775
"hooks": {
@@ -86,5 +84,6 @@
8684
"maintainers": [
8785
"Andrew Powell <andrew@shellscape.org>"
8886
],
87+
"packageManager": "pnpm@10.20.0",
8988
"pre-commit": "lint-staged"
9089
}

0 commit comments

Comments
 (0)