Skip to content

Commit 5b14fb1

Browse files
anomiexmatticbot
authored andcommitted
eslint: Add eslint-plugin-package-json (#44559)
This eslint plugin will sort package.json files and apply other cleanups, replacing the manual use of `sort-package-json` which we're currently only applying to the monorepo root file. The configuration is slightly complex, in that we want different treatment for files in different places: * Only js-packages require a `name` field. * Only public js-packages require a description or version. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/16632823177 Upstream-Ref: Automattic/jetpack@ec35e7c
1 parent 6f3ab09 commit 5b14fb1

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"license": "GPL-2.0-or-later",
66
"require": {
77
"php": ">=7.2",
8-
"automattic/jetpack-assets": "^4.3.1",
9-
"automattic/jetpack-connection": "^6.16.2",
8+
"automattic/jetpack-assets": "^4.3.2-alpha",
9+
"automattic/jetpack-connection": "^6.16.3-alpha",
1010
"automattic/jetpack-constants": "^3.0.8",
1111
"automattic/jetpack-status": "^6.0.1-alpha"
1212
},

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"private": true,
32
"name": "@automattic/jetpack-external-media",
43
"version": "0.4.7-alpha",
4+
"private": true,
55
"description": "The external media feature allows users to select and import photos from external media",
66
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/packages/external-media/#readme",
77
"bugs": {
@@ -22,25 +22,13 @@
2222
"clean": "rm -rf src/build/",
2323
"watch": "pnpm run build-production-js && pnpm webpack watch"
2424
},
25-
"devDependencies": {
26-
"@automattic/jetpack-webpack-config": "workspace:*",
27-
"@babel/core": "7.28.0",
28-
"@babel/plugin-transform-react-jsx": "7.27.1",
29-
"@babel/preset-react": "7.27.1",
30-
"jetpack-js-tools": "workspace:*",
31-
"sass-embedded": "1.87.0",
32-
"sass-loader": "16.0.5",
33-
"typescript": "^5.0.4",
34-
"webpack": "5.94.0",
35-
"webpack-cli": "6.0.1"
36-
},
3725
"dependencies": {
3826
"@automattic/jetpack-ai-client": "^0.33.5-alpha",
39-
"@automattic/jetpack-analytics": "^1.0.3",
27+
"@automattic/jetpack-analytics": "^1.0.4-alpha",
4028
"@automattic/jetpack-base-styles": "^1.0.6",
41-
"@automattic/jetpack-components": "^1.1.16",
42-
"@automattic/jetpack-script-data": "^0.5.0",
43-
"@automattic/jetpack-shared-extension-utils": "^1.3.8",
29+
"@automattic/jetpack-components": "^1.1.17-alpha",
30+
"@automattic/jetpack-script-data": "^0.5.1-alpha",
31+
"@automattic/jetpack-shared-extension-utils": "^1.3.9-alpha",
4432
"@automattic/request-external-access": "1.0.1",
4533
"@wordpress/api-fetch": "7.26.0",
4634
"@wordpress/block-editor": "14.21.0",
@@ -59,5 +47,17 @@
5947
"moment": "2.30.1",
6048
"react": "18.3.1",
6149
"react-dom": "18.3.1"
50+
},
51+
"devDependencies": {
52+
"@automattic/jetpack-webpack-config": "workspace:*",
53+
"@babel/core": "7.28.0",
54+
"@babel/plugin-transform-react-jsx": "7.27.1",
55+
"@babel/preset-react": "7.27.1",
56+
"jetpack-js-tools": "workspace:*",
57+
"sass-embedded": "1.87.0",
58+
"sass-loader": "16.0.5",
59+
"typescript": "^5.0.4",
60+
"webpack": "5.94.0",
61+
"webpack-cli": "6.0.1"
6262
}
6363
}

0 commit comments

Comments
 (0)