Skip to content

Commit f80c921

Browse files
committed
chore: replace 'sort-package-json' with 'fixpkg'
1 parent ba6c754 commit f80c921

File tree

21 files changed

+220
-122
lines changed

21 files changed

+220
-122
lines changed

examples/dual-react-dom-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "@examples/dual-react-dom-lib",
33
"version": "0.0.0",
44
"license": "MIT",
5-
"sideEffects": false,
65
"exports": {
76
".": {
87
"import": {
@@ -17,7 +16,6 @@
1716
"./package.json": "./package.json"
1817
},
1918
"main": "dist/index.js",
20-
"module": "dist/index.mjs",
2119
"types": "dist/index.d.ts",
2220
"files": [
2321
"dist",
@@ -48,5 +46,7 @@
4846
"peerDependencies": {
4947
"react": "^19.0.0"
5048
},
49+
"sideEffects": false,
50+
"module": "dist/index.mjs",
5151
"packageManager": "[email protected]"
5252
}

examples/next-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@examples/next-app",
3+
"version": "",
34
"private": true,
45
"scripts": {
56
"build": "next build",

package.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"repository": {
2222
"type": "git",
23-
"url": "https://github.com/Rel1cx/eslint-react"
23+
"url": "git+https://github.com/Rel1cx/eslint-react.git"
2424
},
2525
"license": "MIT",
2626
"author": "Eva1ent<[email protected]>",
@@ -33,7 +33,7 @@
3333
"build:website": "pnpm -F \"./website\" run build",
3434
"build:workspace": "pnpm -F \"./workspace/*\" run build",
3535
"format:check": "dprint check",
36-
"format:package-json": "pnpm --parallel -r exec sort-package-json -q package.json && sort-package-json -q package.json && dprint fmt",
36+
"format:package-json": "pnpm --parallel -r exec fixpkg -q package.json && fixpkg && dprint fmt",
3737
"format:write": "dprint fmt",
3838
"inspect:deps": "skott -e .ts",
3939
"inspect:eslint-config": "eslint-config-inspector",
@@ -80,6 +80,7 @@
8080
"eslint": "^9.17.0",
8181
"eslint-config-flat-gitignore": "^0.3.0",
8282
"eslint-import-resolver-oxc": "^0.7.0",
83+
"fixpkg": "^1.0.2",
8384
"importx": "^0.5.1",
8485
"lefthook": "^1.10.0",
8586
"markdownlint": "^0.37.2",
@@ -88,7 +89,6 @@
8889
"react": "^19.0.0",
8990
"react-dom": "^19.0.0",
9091
"skott": "^0.35.4",
91-
"sort-package-json": "^2.12.0",
9292
"tinyglobby": "^0.2.10",
9393
"ts-pattern": "^5.6.0",
9494
"tsup": "^8.3.5",
@@ -102,27 +102,24 @@
102102
"typescript-eslint": "^8.18.2",
103103
"vitest": "^2.1.8"
104104
},
105-
"packageManager": "[email protected]",
106105
"engines": {
107106
"bun": ">=1.0.15",
108107
"node": ">=18.18.0"
109108
},
109+
"packageManager": "[email protected]",
110110
"pnpm": {
111111
"overrides": {
112112
"@types/react": "^19.0.2",
113113
"@types/react-dom": "^19.0.2",
114-
"array-flatten": "npm:@nolyfill/array-flatten@^1.0.42",
115114
"cross-spawn": "7.0.6",
116-
"is-core-module": "npm:@nolyfill/is-core-module@^1.0.39",
117-
"isarray": "npm:@nolyfill/isarray@^1.0.29",
115+
"is-core-module": "npm:@nolyfill/is-core-module@^1",
118116
"next": "^15.1.2",
119117
"react": "^19.0.0",
120118
"react-dom": "^19.0.0",
121-
"safe-buffer": "npm:@nolyfill/safe-buffer@^1.0.41",
122-
"safer-buffer": "npm:@nolyfill/safer-buffer@^1.0.41",
123-
"side-channel": "npm:@nolyfill/side-channel@^1.0.29",
119+
"safe-buffer": "npm:@nolyfill/safe-buffer@^1",
120+
"safer-buffer": "npm:@nolyfill/safer-buffer@^1",
124121
"ts-api-utils": "^2.0.0",
125-
"typedarray": "npm:@nolyfill/typedarray@^1.0.29",
122+
"typedarray": "npm:@nolyfill/typedarray@^1",
126123
"typescript": "^5.7.2"
127124
}
128125
}

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/Rel1cx/eslint-react",
11+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
1212
"directory": "packages/core"
1313
},
1414
"license": "MIT",
1515
"author": "Eva1ent<[email protected]>",
16-
"sideEffects": false,
1716
"exports": {
1817
".": {
1918
"import": {
@@ -28,7 +27,6 @@
2827
"./package.json": "./package.json"
2928
},
3029
"main": "dist/index.js",
31-
"module": "dist/index.mjs",
3230
"types": "dist/index.d.ts",
3331
"files": [
3432
"dist",
@@ -58,5 +56,7 @@
5856
"devDependencies": {
5957
"@workspace/configs": "workspace:*",
6058
"tsup": "^8.3.5"
61-
}
59+
},
60+
"sideEffects": false,
61+
"module": "dist/index.mjs"
6262
}

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/Rel1cx/eslint-react",
19+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
2020
"directory": "packages/plugins/eslint-plugin-react-debug"
2121
},
2222
"license": "MIT",
2323
"author": "Eva1ent<[email protected]>",
24-
"sideEffects": false,
2524
"exports": {
2625
".": {
2726
"import": {
@@ -36,7 +35,6 @@
3635
"./package.json": "./package.json"
3736
},
3837
"main": "dist/index.js",
39-
"module": "dist/index.mjs",
4038
"types": "./dist/index.d.ts",
4139
"files": [
4240
"dist",
@@ -87,5 +85,7 @@
8785
},
8886
"publishConfig": {
8987
"access": "public"
90-
}
88+
},
89+
"sideEffects": false,
90+
"module": "dist/index.mjs"
9191
}

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/Rel1cx/eslint-react",
19+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
2020
"directory": "packages/plugins/eslint-plugin-react-dom"
2121
},
2222
"license": "MIT",
2323
"author": "Eva1ent<[email protected]>",
24-
"sideEffects": false,
2524
"exports": {
2625
".": {
2726
"import": {
@@ -36,7 +35,6 @@
3635
"./package.json": "./package.json"
3736
},
3837
"main": "dist/index.js",
39-
"module": "dist/index.mjs",
4038
"types": "dist/index.d.ts",
4139
"files": [
4240
"dist",
@@ -87,5 +85,7 @@
8785
},
8886
"publishConfig": {
8987
"access": "public"
90-
}
88+
},
89+
"sideEffects": false,
90+
"module": "dist/index.mjs"
9191
}

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
},
1818
"repository": {
1919
"type": "git",
20-
"url": "https://github.com/Rel1cx/eslint-react",
20+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
2121
"directory": "packages/plugins/eslint-plugin-react-hooks-extra"
2222
},
2323
"license": "MIT",
2424
"author": "Eva1ent<[email protected]>",
25-
"sideEffects": false,
2625
"exports": {
2726
".": {
2827
"import": {
@@ -37,7 +36,6 @@
3736
"./package.json": "./package.json"
3837
},
3938
"main": "dist/index.js",
40-
"module": "dist/index.mjs",
4139
"types": "dist/index.d.ts",
4240
"files": [
4341
"dist",
@@ -88,5 +86,7 @@
8886
},
8987
"publishConfig": {
9088
"access": "public"
91-
}
89+
},
90+
"sideEffects": false,
91+
"module": "dist/index.mjs"
9292
}

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/Rel1cx/eslint-react",
19+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
2020
"directory": "packages/plugins/eslint-plugin-react-naming-convention"
2121
},
2222
"license": "MIT",
2323
"author": "Eva1ent<[email protected]>",
24-
"sideEffects": false,
2524
"exports": {
2625
".": {
2726
"import": {
@@ -36,7 +35,6 @@
3635
"./package.json": "./package.json"
3736
},
3837
"main": "dist/index.js",
39-
"module": "dist/index.mjs",
4038
"types": "dist/index.d.ts",
4139
"files": [
4240
"dist",
@@ -86,5 +84,7 @@
8684
},
8785
"publishConfig": {
8886
"access": "public"
89-
}
87+
},
88+
"sideEffects": false,
89+
"module": "dist/index.mjs"
9090
}

packages/plugins/eslint-plugin-react-web-api/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@
1616
},
1717
"repository": {
1818
"type": "git",
19-
"url": "https://github.com/Rel1cx/eslint-react",
19+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
2020
"directory": "packages/plugins/eslint-plugin-react-web-api"
2121
},
2222
"license": "MIT",
2323
"author": "Eva1ent<[email protected]>",
24-
"sideEffects": false,
2524
"exports": {
2625
".": {
2726
"import": {
@@ -36,7 +35,6 @@
3635
"./package.json": "./package.json"
3736
},
3837
"main": "dist/index.js",
39-
"module": "dist/index.mjs",
4038
"types": "dist/index.d.ts",
4139
"files": [
4240
"dist",
@@ -86,5 +84,7 @@
8684
},
8785
"publishConfig": {
8886
"access": "public"
89-
}
87+
},
88+
"sideEffects": false,
89+
"module": "dist/index.mjs"
9090
}

packages/plugins/eslint-plugin-react-x/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
},
1616
"repository": {
1717
"type": "git",
18-
"url": "https://github.com/Rel1cx/eslint-react",
18+
"url": "git+https://github.com/Rel1cx/eslint-react.git",
1919
"directory": "packages/plugins/eslint-plugin-react-x"
2020
},
2121
"license": "MIT",
2222
"author": "Eva1ent<[email protected]>",
23-
"sideEffects": false,
2423
"exports": {
2524
".": {
2625
"import": {
@@ -35,7 +34,6 @@
3534
"./package.json": "./package.json"
3635
},
3736
"main": "dist/index.js",
38-
"module": "dist/index.mjs",
3937
"types": "dist/index.d.ts",
4038
"files": [
4139
"dist",
@@ -89,5 +87,7 @@
8987
},
9088
"publishConfig": {
9189
"access": "public"
92-
}
90+
},
91+
"sideEffects": false,
92+
"module": "dist/index.mjs"
9393
}

0 commit comments

Comments
 (0)