eslint-plugin-package-json 0.33.0 → 0.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +325 -0
- package/README.md +2 -2
- package/lib/rules/no-redundant-files.js +5 -1
- package/lib/rules/no-redundant-files.mjs +5 -1
- package/package.json +4 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.33.2](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.33.1...v0.33.2) (2025-06-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* prevent `no-redundant-files` crash with wildcard and `main` field ([#1078](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1078)) ([ad4f95f](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/ad4f95f382bce8d5d0ecc79e4242596dc3eec771)), closes [#1066](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1066)
|
|
9
|
+
|
|
10
|
+
## [0.33.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.33.0...v0.33.1) (2025-06-01)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- add CHANGELOG to package ([#1075](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1075)) ([eb13030](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/eb130302b6dfcc456dfeaf49fdfd61bd4fa495d1)), closes [#1070](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1070)
|
|
15
|
+
|
|
16
|
+
# [0.33.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.32.0...v0.33.0) (2025-05-31)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- add `require-type` rule ([#1065](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1065)) ([9c092be](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/9c092beb546407c4b8b43426058c56696a88b7c3)), closes [#1032](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1032)
|
|
21
|
+
|
|
22
|
+
# [0.32.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.31.0...v0.32.0) (2025-05-31)
|
|
23
|
+
|
|
24
|
+
No meaningful change. CI error.
|
|
25
|
+
|
|
26
|
+
# [0.31.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.30.0...v0.31.0) (2025-04-26)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
- add require-description rule ([#1024](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1024)) ([0c00c62](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/0c00c62cc3b68ff9eae8d3f3bf20d8b4fbbb3926)), closes [#864](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/864)
|
|
31
|
+
|
|
32
|
+
# [0.30.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.29.1...v0.30.0) (2025-04-22)
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
- new `restrict-dependency-ranges` rule ([#998](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/998)) ([f2d1070](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/f2d1070433a488a8bd34ad2a40a3337b218bc358)), closes [#959](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/959) [#959](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/959)
|
|
37
|
+
|
|
38
|
+
## [0.29.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.29.0...v0.29.1) (2025-04-09)
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
- bump to create-typescript-app@2 with transitions action ([#993](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/993)) ([5b5c298](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/5b5c2989dda36b43e85a14056120e863ef4fec3f)), closes [#969](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/969)
|
|
43
|
+
|
|
44
|
+
# [0.29.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.28.0...v0.29.0) (2025-03-17)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
- **require-types:** add new rule ([#958](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/958)) ([63305af](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/63305afcac6fa57030b13de2ae9f26c108c979c0)), closes [#816](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/816) [#816](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/816)
|
|
49
|
+
|
|
50
|
+
# [0.28.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.27.0...v0.28.0) (2025-03-17)
|
|
51
|
+
|
|
52
|
+
### Features
|
|
53
|
+
|
|
54
|
+
- **require-engines:** add new rule ([#954](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/954)) ([9093b28](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/9093b280c77770512ac88631e4903e17d5275bec)), closes [#868](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/868)
|
|
55
|
+
|
|
56
|
+
# [0.27.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.26.4...v0.27.0) (2025-03-17)
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
- empty feature commit to trigger new minor version ([b6b58d4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/b6b58d46da07dd5f1a51e5b2c71a10803863b113))
|
|
61
|
+
|
|
62
|
+
## [0.26.4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.26.3...v0.26.4) (2025-03-17)
|
|
63
|
+
|
|
64
|
+
## [0.26.3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.26.2...v0.26.3) (2025-03-07)
|
|
65
|
+
|
|
66
|
+
### Bug Fixes
|
|
67
|
+
|
|
68
|
+
- **deps:** update dependency sort-package-json to v3 ([#939](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/939)) ([a61e725](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/a61e7255f5f0fe70b2c190b38f76d684a9d3e37c))
|
|
69
|
+
|
|
70
|
+
## [0.26.2](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.26.1...v0.26.2) (2025-03-04)
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
- **deps:** update dependency sort-package-json to v2.15.1 ([#933](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/933)) ([f3a8169](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/f3a8169113d25f3be69be2a6a027bd74ea3c8022))
|
|
75
|
+
|
|
76
|
+
## [0.26.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.26.0...v0.26.1) (2025-03-02)
|
|
77
|
+
|
|
78
|
+
### Bug Fixes
|
|
79
|
+
|
|
80
|
+
- **deps:** update dependency sort-package-json to v2.15.0 ([#925](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/925)) ([3ce4286](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/3ce4286442f45c74d09dcc60e040bafb879a75f2))
|
|
81
|
+
|
|
82
|
+
# [0.26.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.25.0...v0.26.0) (2025-02-10)
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
- **require-files:** add require-files rule ([#887](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/887)) ([4de33de](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/4de33de2715579c0d217609cd576d1b3b843d457)), closes [#803](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/803)
|
|
87
|
+
|
|
88
|
+
# [0.25.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.24.0...v0.25.0) (2025-02-09)
|
|
89
|
+
|
|
90
|
+
### Features
|
|
91
|
+
|
|
92
|
+
- **require-keywords:** add require-keywords rule ([#884](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/884)) ([99237f0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/99237f0dc5902bda417345cba681f23a328c5bbe)), closes [#866](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/866)
|
|
93
|
+
|
|
94
|
+
# [0.24.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.23.1...v0.24.0) (2025-02-08)
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
- **require-name:** add require-name rule ([#883](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/883)) ([3a82dd8](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/3a82dd82d14b6bc1aaa72cfbc2e68aeb282ce18a)), closes [#808](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/808)
|
|
99
|
+
|
|
100
|
+
## [0.23.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.23.0...v0.23.1) (2025-02-07)
|
|
101
|
+
|
|
102
|
+
### Bug Fixes
|
|
103
|
+
|
|
104
|
+
- **deps:** update dependency semver to v7.7.1 ([#880](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/880)) ([152cfc1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/152cfc10e9cc9e34803e609ec3b12855395093c6))
|
|
105
|
+
|
|
106
|
+
# [0.23.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.22.0...v0.23.0) (2025-02-04)
|
|
107
|
+
|
|
108
|
+
### Features
|
|
109
|
+
|
|
110
|
+
- **require-version:** add require-version rule ([#861](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/861)) ([848377d](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/848377dea379ed23d22d8fc5acd2e84c472ebb1b))
|
|
111
|
+
|
|
112
|
+
# [0.22.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.21.1...v0.22.0) (2025-02-03)
|
|
113
|
+
|
|
114
|
+
### Features
|
|
115
|
+
|
|
116
|
+
- **require-author:** add new `require-author` rule ([#851](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/851)) ([cde68da](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/cde68da27bf87d711a8fb6f90df9f99f7bdb1512)), closes [#795](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/795)
|
|
117
|
+
|
|
118
|
+
## [0.21.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.21.0...v0.21.1) (2025-01-24)
|
|
119
|
+
|
|
120
|
+
### Bug Fixes
|
|
121
|
+
|
|
122
|
+
- **no-redundant-files:** detect variations of README.md as redundant ([#765](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/765)) ([7453095](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/745309536c3d2c175591582147028754f9287b1d)), closes [#763](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/763) [#763](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/763)
|
|
123
|
+
|
|
124
|
+
# [0.21.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.20.1...v0.21.0) (2025-01-23)
|
|
125
|
+
|
|
126
|
+
### Features
|
|
127
|
+
|
|
128
|
+
- add no-empty-fields rule ([#741](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/741)) ([e57765b](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/e57765b3de7c4703f1c697d54758e5789494281a)), closes [#683](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/683)
|
|
129
|
+
|
|
130
|
+
## [0.20.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.20.0...v0.20.1) (2025-01-19)
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
- bump package-json-validator dep to 0.8 ([#735](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/735)) ([29a9722](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/29a9722c15d39984ea99c2be346e20c2f4f9c76e)), closes [#734](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/734)
|
|
135
|
+
|
|
136
|
+
# [0.20.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.19.0...v0.20.0) (2025-01-17)
|
|
137
|
+
|
|
138
|
+
### Features
|
|
139
|
+
|
|
140
|
+
- **no-redundant-files:** add new rule ([#721](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/721)) ([1167f5e](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/1167f5ea698bf09e2dfe77147464cc3a3d5ee6e7)), closes [#686](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/686) [#686](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/686)
|
|
141
|
+
|
|
142
|
+
# [0.19.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.18.0...v0.19.0) (2024-12-31)
|
|
143
|
+
|
|
144
|
+
### Features
|
|
145
|
+
|
|
146
|
+
- **valid-package-definition:** rename rule from valid-package-def ([#711](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/711)) ([4f3907b](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/4f3907b83ce1ddadcfbb572e70559e22b9c4a917)), closes [#132](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/132) [#132](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/132)
|
|
147
|
+
|
|
148
|
+
# [0.18.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.17.0...v0.18.0) (2024-12-05)
|
|
149
|
+
|
|
150
|
+
### Features
|
|
151
|
+
|
|
152
|
+
- update sort-package-json to 12 ([#680](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/680)) ([566e85b](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/566e85b27ecff4997cd08e1fa00611b1b0e61db0)), closes [#679](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/679)
|
|
153
|
+
|
|
154
|
+
# [0.17.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.16.0...v0.17.0) (2024-11-30)
|
|
155
|
+
|
|
156
|
+
### Features
|
|
157
|
+
|
|
158
|
+
- sort alphabetically with co-located hooks for `scripts` ([#632](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/632)) ([4ccae4f](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/4ccae4f58e1695b792dd3d0daf46cedc134d9541)), closes [#499](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/499) [#499](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/499)
|
|
159
|
+
|
|
160
|
+
# [0.16.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.6...v0.16.0) (2024-11-30)
|
|
161
|
+
|
|
162
|
+
### Features
|
|
163
|
+
|
|
164
|
+
- **sort-collections:** should sort `overrides` ([#668](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/668)) ([18129cd](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/18129cd5c4a0bf45709ea7fcb9fb316c2a639a71)), closes [#619](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/619)
|
|
165
|
+
|
|
166
|
+
## [0.15.6](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.5...v0.15.6) (2024-11-09)
|
|
167
|
+
|
|
168
|
+
### Bug Fixes
|
|
169
|
+
|
|
170
|
+
- add sorting exports field ([#615](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/615)) ([116c74b](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/116c74be65089d7cfb39f3dae2fcae18fe19a263)), closes [#000](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/000)
|
|
171
|
+
|
|
172
|
+
## [0.15.5](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.4...v0.15.5) (2024-11-06)
|
|
173
|
+
|
|
174
|
+
### Bug Fixes
|
|
175
|
+
|
|
176
|
+
- add plugin export ([#609](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/609)) ([a2c83b4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/a2c83b42c231129efb97ec29a29f6ae361adcc26)), closes [#000](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/000)
|
|
177
|
+
|
|
178
|
+
## [0.15.4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.3...v0.15.4) (2024-10-18)
|
|
179
|
+
|
|
180
|
+
### Bug Fixes
|
|
181
|
+
|
|
182
|
+
- update dependency package-json-validator to v0.7.0 ([#569](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/569)) ([9d44862](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/9d44862f29cef1e6e8d71facf55ac5cf907d979e)), closes [#000](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/000)
|
|
183
|
+
|
|
184
|
+
## [0.15.3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.2...v0.15.3) (2024-09-12)
|
|
185
|
+
|
|
186
|
+
### Bug Fixes
|
|
187
|
+
|
|
188
|
+
- **valid-repository-directory:** use repository root for more accurate linting ([#498](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/498)) ([d149400](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/d1494001a7cbf3fa95041179004fa8ad03ef0d34)), closes [#252](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/252)
|
|
189
|
+
|
|
190
|
+
## [0.15.2](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.1...v0.15.2) (2024-07-10)
|
|
191
|
+
|
|
192
|
+
### Bug Fixes
|
|
193
|
+
|
|
194
|
+
- skip check for name to match npm package when private is true ([#455](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/455)) ([cc10e05](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/cc10e052911688ca7cacb9761c2db7c24c826d3e)), closes [#000](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/000)
|
|
195
|
+
|
|
196
|
+
## [0.15.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.15.0...v0.15.1) (2024-07-10)
|
|
197
|
+
|
|
198
|
+
### Bug Fixes
|
|
199
|
+
|
|
200
|
+
- update package-json-validator ([#456](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/456)) ([1a8bda4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/1a8bda47891c14c7434ad6242f33f9ad7c2e940f)), closes [#250](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/250)
|
|
201
|
+
|
|
202
|
+
# [0.15.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.14.0...v0.15.0) (2024-06-17)
|
|
203
|
+
|
|
204
|
+
### Features
|
|
205
|
+
|
|
206
|
+
- **order-properties:** more precise error reporting ([#328](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/328)) ([4a3fbc8](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/4a3fbc8046d4286ca950b1de9000f12bdadfa961)), closes [#320](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/320)
|
|
207
|
+
|
|
208
|
+
# [0.14.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.13.1...v0.14.0) (2024-05-31)
|
|
209
|
+
|
|
210
|
+
### Features
|
|
211
|
+
|
|
212
|
+
- add name field to recommended config ([#329](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/329)) ([b7a1a37](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/b7a1a37afb35c8040fa77abaaeb669d3935e5e14)), closes [#308](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/308)
|
|
213
|
+
|
|
214
|
+
## [0.13.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.13.0...v0.13.1) (2024-04-29)
|
|
215
|
+
|
|
216
|
+
### Bug Fixes
|
|
217
|
+
|
|
218
|
+
- rule order-properties not work ([#315](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/315)) ([3a477f5](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/3a477f5f9e6223bff49d0a3b3cb33633bed7b76e)), closes [#000](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/000)
|
|
219
|
+
|
|
220
|
+
# [0.13.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.12.1...v0.13.0) (2024-04-29)
|
|
221
|
+
|
|
222
|
+
### Bug Fixes
|
|
223
|
+
|
|
224
|
+
- correct suggestion status ([#299](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/299)) ([146e25d](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/146e25dc1f837eb3cd64d4862bf5e035dbb250e2)), closes [#255](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/255)
|
|
225
|
+
|
|
226
|
+
### Features
|
|
227
|
+
|
|
228
|
+
- sort-order rule shouldn't change sub-keys, better auto-fix ([#312](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/312)) ([a894550](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/a89455019be1a41309c7b3cab0a9acefbd7abeb2)), closes [#80](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/80)
|
|
229
|
+
|
|
230
|
+
## [0.12.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.12.0...v0.12.1) (2024-03-28)
|
|
231
|
+
|
|
232
|
+
### Bug Fixes
|
|
233
|
+
|
|
234
|
+
- **valid-package-def:** ignore pnpm workspace protocol ([#258](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/258)) ([4b061e6](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/4b061e6540fb914d004337bb89a90fedfb94b0f7)), closes [#251](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/251)
|
|
235
|
+
|
|
236
|
+
# [0.12.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.11.0...v0.12.0) (2024-03-25)
|
|
237
|
+
|
|
238
|
+
### Features
|
|
239
|
+
|
|
240
|
+
- switch prefer-repository-shorthand to repository-shorthand ([#248](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/248)) ([580edb3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/580edb3957cd4d8229bf73c10b1f7f65f79dc53f)), closes [#223](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/223)
|
|
241
|
+
|
|
242
|
+
# [0.11.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.10.4...v0.11.0) (2024-03-24)
|
|
243
|
+
|
|
244
|
+
### Features
|
|
245
|
+
|
|
246
|
+
- support flat config ([#161](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/161)) ([bf31a6c](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/bf31a6cb491afe0d43b29bc830d3b4c24bd1cf6d)), closes [#91](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/91)
|
|
247
|
+
|
|
248
|
+
## [0.10.4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.10.3...v0.10.4) (2024-02-20)
|
|
249
|
+
|
|
250
|
+
### Bug Fixes
|
|
251
|
+
|
|
252
|
+
- can not import in ESM package ([#159](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/159)) ([2ce1881](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/2ce188156d0b91fdcb9606e069a45148c673e6c0)), closes [#152](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/152) [#157](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/157)
|
|
253
|
+
|
|
254
|
+
## [0.10.3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.10.2...v0.10.3) (2024-02-20)
|
|
255
|
+
|
|
256
|
+
### Bug Fixes
|
|
257
|
+
|
|
258
|
+
- ignore npm alias version range error ([#156](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/156)) ([4436638](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/4436638aba4eb727d4d09cc3e33bca04faf18620)), closes [#153](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/153)
|
|
259
|
+
|
|
260
|
+
## [0.10.2](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.10.1...v0.10.2) (2024-02-01)
|
|
261
|
+
|
|
262
|
+
### Bug Fixes
|
|
263
|
+
|
|
264
|
+
- support Windows paths, again ([#144](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/144)) ([27243fa](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/27243fa5e6d0d59362e19f49135f69300949d282)), closes [#142](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/142) [#30](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/30)
|
|
265
|
+
|
|
266
|
+
## [0.10.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.10.0...v0.10.1) (2024-01-25)
|
|
267
|
+
|
|
268
|
+
### Bug Fixes
|
|
269
|
+
|
|
270
|
+
- incorrect example in 'sort-collections' ([#137](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/137)) ([88a94a0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/88a94a06e0db5624f83fab22144d7096a0cd1a3a)), closes [#136](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/136)
|
|
271
|
+
|
|
272
|
+
# [0.10.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.9.0...v0.10.0) (2024-01-20)
|
|
273
|
+
|
|
274
|
+
### Features
|
|
275
|
+
|
|
276
|
+
- added valid-version rule ([#135](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/135)) ([6e8b6fb](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/6e8b6fbe777d03731f5552c980eaad4e5f8d4dad)), closes [#130](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/130)
|
|
277
|
+
|
|
278
|
+
# [0.9.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.8.1...v0.9.0) (2024-01-20)
|
|
279
|
+
|
|
280
|
+
### Features
|
|
281
|
+
|
|
282
|
+
- added valid-name rule ([#134](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/134)) ([ecf9266](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/ecf926602f760c3edf1a832615624210a90ed3ed)), closes [#131](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/131)
|
|
283
|
+
|
|
284
|
+
## [0.8.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.8.0...v0.8.1) (2024-01-20)
|
|
285
|
+
|
|
286
|
+
### Bug Fixes
|
|
287
|
+
|
|
288
|
+
- correct order-properties key checks ([#129](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/129)) ([a635c27](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/a635c279552beea4b0e5a611321d9f92083416e4)), closes [#127](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/127) [#128](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/128) [#127](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/127) [#128](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/128)
|
|
289
|
+
|
|
290
|
+
# [0.8.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.7.0...v0.8.0) (2024-01-20)
|
|
291
|
+
|
|
292
|
+
### Features
|
|
293
|
+
|
|
294
|
+
- added unique-dependencies rule ([#126](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/126)) ([a9417d1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/a9417d1685808dd8e4c27eff9e3b9c7399be6e1b)), closes [#50](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/50)
|
|
295
|
+
|
|
296
|
+
# [0.7.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.6.0...v0.7.0) (2024-01-20)
|
|
297
|
+
|
|
298
|
+
### Features
|
|
299
|
+
|
|
300
|
+
- added valid-repository-directory rule ([#123](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/123)) ([84035c3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/84035c3f2bac376567eef767ba21f354a0d93f54)), closes [#53](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/53)
|
|
301
|
+
|
|
302
|
+
# [0.6.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.5.0...v0.6.0) (2024-01-20)
|
|
303
|
+
|
|
304
|
+
### Features
|
|
305
|
+
|
|
306
|
+
- change order-properties order default to sort-package-json ([#122](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/122)) ([246261d](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/246261dff5838c42add53fd45c03a5eadc495d83)), closes [#58](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/58)
|
|
307
|
+
|
|
308
|
+
# [0.5.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.4.0...v0.5.0) (2024-01-20)
|
|
309
|
+
|
|
310
|
+
### Features
|
|
311
|
+
|
|
312
|
+
- add prefer-repository-shorthand rule ([#70](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/70)) ([0c7fb19](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/0c7fb199cdf0ba001bd996f6da2c4ba8cbbc7d0f)), closes [#71](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/71)
|
|
313
|
+
|
|
314
|
+
# [0.4.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.1.3...v0.4.0) (2024-01-20)
|
|
315
|
+
|
|
316
|
+
### Bug Fixes
|
|
317
|
+
|
|
318
|
+
- detect package.json in Windows ([eb90172](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/eb901727c12fdd4f7a5d734c9e98f3123059bee8))
|
|
319
|
+
- Missing extension in valid-package-def link ([0cd9b6b](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/0cd9b6bd462b9b801cf69b1a09d8c23d4afcedf0))
|
|
320
|
+
- recommended config ([#103](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/103)) ([77dc134](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/77dc1344ea7a34abcb6c0e87d61b65149b4fe2ca)), closes [#102](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/102)
|
|
321
|
+
- typo ([#63](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/63)) ([3e6f6bc](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/3e6f6bc40ed8a856199082429e66c77c099210f5))
|
|
322
|
+
|
|
323
|
+
### Features
|
|
324
|
+
|
|
325
|
+
- converted to TypeScript ([#59](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/59)) ([c328633](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/c3286338cb98a3d5570ff95424057317a2881fa1)), closes [#60](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/60) [#35](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/35)
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<p align="center">
|
|
9
9
|
<!-- prettier-ignore-start -->
|
|
10
10
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
11
|
-
<a href="#contributors" target="_blank"><img alt="👪 All Contributors:
|
|
11
|
+
<a href="#contributors" target="_blank"><img alt="👪 All Contributors: 28" src="https://img.shields.io/badge/%F0%9F%91%AA_all_contributors-28-21bb42.svg" /></a>
|
|
12
12
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
13
13
|
<!-- prettier-ignore-end -->
|
|
14
14
|
<a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/main/.github/CODE_OF_CONDUCT.md" target="_blank"><img alt="🤝 Code of Conduct: Kept" src="https://img.shields.io/badge/%F0%9F%A4%9D_code_of_conduct-kept-21bb42" /></a>
|
|
@@ -195,7 +195,7 @@ Thanks! 🗂
|
|
|
195
195
|
<td align="center" valign="top" width="14.28%"><a href="https://ota-meshi.github.io/"><img src="https://avatars.githubusercontent.com/u/16508807?v=4?s=100" width="100px;" alt="Yosuke Ota"/><br /><sub><b>Yosuke Ota</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=author%3Aota-meshi" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=ota-meshi" title="Code">💻</a></td>
|
|
196
196
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/b3rnhard"><img src="https://avatars.githubusercontent.com/u/10774404?v=4?s=100" width="100px;" alt="b3rnhard"/><br /><sub><b>b3rnhard</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=author%3Ab3rnhard" title="Bug reports">🐛</a></td>
|
|
197
197
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chouchouji"><img src="https://avatars.githubusercontent.com/u/70570907?v=4?s=100" width="100px;" alt="chouchouji"/><br /><sub><b>chouchouji</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=chouchouji" title="Code">💻</a></td>
|
|
198
|
-
<td align="center" valign="top" width="14.28%"><a href="https://github.com/michaelfaith"><img src="https://avatars.githubusercontent.com/u/8071845?v=4?s=100" width="100px;" alt="michael faith"/><br /><sub><b>michael faith</b></sub></a><br /><a href="#infra-michaelfaith" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=michaelfaith" title="Code">💻</a> <a href="#maintenance-michaelfaith" title="Maintenance">🚧</a> <a href="#ideas-michaelfaith" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
198
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/michaelfaith"><img src="https://avatars.githubusercontent.com/u/8071845?v=4?s=100" width="100px;" alt="michael faith"/><br /><sub><b>michael faith</b></sub></a><br /><a href="#infra-michaelfaith" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=michaelfaith" title="Code">💻</a> <a href="#maintenance-michaelfaith" title="Maintenance">🚧</a> <a href="#ideas-michaelfaith" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=author%3Amichaelfaith" title="Bug reports">🐛</a> <a href="#tool-michaelfaith" title="Tools">🔧</a></td>
|
|
199
199
|
<td align="center" valign="top" width="14.28%"><a href="https://roottool.vercel.app"><img src="https://avatars.githubusercontent.com/u/11808736?v=4?s=100" width="100px;" alt="roottool"/><br /><sub><b>roottool</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=roottool" title="Code">💻</a></td>
|
|
200
200
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sunnytsang1998"><img src="https://avatars.githubusercontent.com/u/207208443?v=4?s=100" width="100px;" alt="sunnytsang1998"/><br /><sub><b>sunnytsang1998</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=author%3Asunnytsang1998" title="Bug reports">🐛</a></td>
|
|
201
201
|
</tr>
|
|
@@ -30,8 +30,12 @@ const defaultFiles = [
|
|
|
30
30
|
/^(\.\/)?README(\.|$)/i,
|
|
31
31
|
/^(\.\/)?package\.json$/i
|
|
32
32
|
];
|
|
33
|
+
const wildcardsRegex = /[*?[\]{}]/;
|
|
33
34
|
const cachedRegex = /* @__PURE__ */ new Map();
|
|
34
35
|
const getCachedLocalFileRegex = (filename) => {
|
|
36
|
+
if (wildcardsRegex.test(filename)) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
35
39
|
const baseFilename = filename.replace("./", "");
|
|
36
40
|
let regex = cachedRegex.get(baseFilename);
|
|
37
41
|
if (regex) {
|
|
@@ -132,7 +136,7 @@ const rule = (0, import_createRule.createRule)({
|
|
|
132
136
|
const regex = getCachedLocalFileRegex(
|
|
133
137
|
fileEntry.value
|
|
134
138
|
);
|
|
135
|
-
if (regex
|
|
139
|
+
if (regex?.test(fileToCheck)) {
|
|
136
140
|
report(files, index, validation.messageId);
|
|
137
141
|
}
|
|
138
142
|
}
|
|
@@ -7,8 +7,12 @@ const defaultFiles = [
|
|
|
7
7
|
/^(\.\/)?README(\.|$)/i,
|
|
8
8
|
/^(\.\/)?package\.json$/i
|
|
9
9
|
];
|
|
10
|
+
const wildcardsRegex = /[*?[\]{}]/;
|
|
10
11
|
const cachedRegex = /* @__PURE__ */ new Map();
|
|
11
12
|
const getCachedLocalFileRegex = (filename) => {
|
|
13
|
+
if (wildcardsRegex.test(filename)) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
12
16
|
const baseFilename = filename.replace("./", "");
|
|
13
17
|
let regex = cachedRegex.get(baseFilename);
|
|
14
18
|
if (regex) {
|
|
@@ -109,7 +113,7 @@ const rule = createRule({
|
|
|
109
113
|
const regex = getCachedLocalFileRegex(
|
|
110
114
|
fileEntry.value
|
|
111
115
|
);
|
|
112
|
-
if (regex
|
|
116
|
+
if (regex?.test(fileToCheck)) {
|
|
113
117
|
report(files, index, validation.messageId);
|
|
114
118
|
}
|
|
115
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-package-json",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.2",
|
|
4
4
|
"description": "Rules for consistent, readable, and valid package.json files. 🗂️",
|
|
5
5
|
"homepage": "https://github.com/JoshuaKGoldberg/eslint-plugin-package-json#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -28,10 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"main": "lib/index.js",
|
|
30
30
|
"files": [
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"lib/",
|
|
34
|
-
"package.json"
|
|
31
|
+
"CHANGELOG.md",
|
|
32
|
+
"lib/"
|
|
35
33
|
],
|
|
36
34
|
"scripts": {
|
|
37
35
|
"build": "tsup",
|
|
@@ -88,7 +86,7 @@
|
|
|
88
86
|
"eslint-plugin-yml": "1.18.0",
|
|
89
87
|
"husky": "9.1.7",
|
|
90
88
|
"jsonc-eslint-parser": "2.4.0",
|
|
91
|
-
"knip": "5.
|
|
89
|
+
"knip": "5.58.0",
|
|
92
90
|
"lint-staged": "16.0.0",
|
|
93
91
|
"markdownlint": "0.38.0",
|
|
94
92
|
"markdownlint-cli": "0.45.0",
|