Commit 5b14fb1
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@ec35e7c1 parent 6f3ab09 commit 5b14fb1
2 files changed
Lines changed: 19 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 25 | | |
38 | 26 | | |
39 | | - | |
| 27 | + | |
40 | 28 | | |
41 | | - | |
42 | | - | |
43 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
44 | 32 | | |
45 | 33 | | |
46 | 34 | | |
| |||
59 | 47 | | |
60 | 48 | | |
61 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
0 commit comments