eslint-plugin-package-json 0.45.0 → 0.45.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 +14 -2
- package/README.md +1 -1
- package/lib/rules/valid-repository-directory.js +2 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## [0.45.2](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.45.1...v0.45.2) (2025-07-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** update dependency package-json-validator to ~0.23.0 ([#1183](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1183)) ([fbc5f29](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/fbc5f298a63a4ce58d1311502bbea9a0593173d1))
|
|
4
9
|
|
|
10
|
+
## [0.45.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.45.0...v0.45.1) (2025-07-18)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **valid-repository-directory:** use correct path separator when on windows ([#1177](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1177)) ([0688419](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/06884197a028a258c31db0104d8db1dc86f53345)), closes [#1175](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1175)
|
|
15
|
+
|
|
16
|
+
# [0.45.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.44.1...v0.45.0) (2025-07-17)
|
|
5
17
|
|
|
6
18
|
### Features
|
|
7
19
|
|
|
8
|
-
|
|
20
|
+
- **valid-license:** add new rule for validating `license` ([#1174](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1174)) ([df450a1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/df450a121067793af25890eb15e4120911a8cfa7)), closes [#830](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/830)
|
|
9
21
|
|
|
10
22
|
## [0.44.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.44.0...v0.44.1) (2025-07-10)
|
|
11
23
|
|
package/README.md
CHANGED
|
@@ -198,7 +198,7 @@ Thanks! 🗂
|
|
|
198
198
|
</tr>
|
|
199
199
|
<tr>
|
|
200
200
|
<td align="center" valign="top" width="14.28%"><a href="https://davidlj95.com"><img src="https://avatars.githubusercontent.com/u/8050648?v=4?s=100" width="100px;" alt="David LJ"/><br /><sub><b>David LJ</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=davidlj95" title="Documentation">📖</a></td>
|
|
201
|
-
<td align="center" valign="top" width="14.28%"><a href="http://lishaduck.github.io"><img src="https://avatars.githubusercontent.com/u/88557639?v=4?s=100" width="100px;" alt="Eli"/><br /><sub><b>Eli</b></sub></a><br /><a href="#ideas-lishaduck" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
201
|
+
<td align="center" valign="top" width="14.28%"><a href="http://lishaduck.github.io"><img src="https://avatars.githubusercontent.com/u/88557639?v=4?s=100" width="100px;" alt="Eli"/><br /><sub><b>Eli</b></sub></a><br /><a href="#ideas-lishaduck" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=author%3Alishaduck" title="Bug reports">🐛</a></td>
|
|
202
202
|
<td align="center" valign="top" width="14.28%"><a href="http://heggria.site"><img src="https://avatars.githubusercontent.com/u/34475327?v=4?s=100" width="100px;" alt="Heggria"/><br /><sub><b>Heggria</b></sub></a><br /><a href="#ideas-heggria" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
203
203
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Zamiell"><img src="https://avatars.githubusercontent.com/u/5511220?v=4?s=100" width="100px;" alt="James"/><br /><sub><b>James</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=Zamiell" title="Code">💻</a></td>
|
|
204
204
|
<td align="center" valign="top" width="14.28%"><a href="https://github.com/zetlen"><img src="https://avatars.githubusercontent.com/u/1643758?v=4?s=100" width="100px;" alt="James Zetlen"/><br /><sub><b>James Zetlen</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=zetlen" title="Code">💻</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues?q=author%3Azetlen" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commits?author=zetlen" title="Documentation">📖</a> <a href="#infra-zetlen" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-zetlen" title="Maintenance">🚧</a> <a href="#tool-zetlen" title="Tools">🔧</a></td>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { findRootSync } from "@altano/repository-tools";
|
|
2
2
|
import * as path from "node:path";
|
|
3
|
+
import { sep as posixSep } from "node:path/posix";
|
|
3
4
|
import { createRule } from "../createRule.js";
|
|
4
5
|
import { findPropertyWithKeyValue } from "../utils/findPropertyWithKeyValue.js";
|
|
5
6
|
function pathEndsWith(parent, child) {
|
|
@@ -42,10 +43,7 @@ const rule = createRule({
|
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
} else {
|
|
45
|
-
const expected = path.relative(
|
|
46
|
-
repositoryRoot,
|
|
47
|
-
fileDirectory
|
|
48
|
-
);
|
|
46
|
+
const expected = path.relative(repositoryRoot, fileDirectory).replaceAll(path.sep, posixSep);
|
|
49
47
|
if (expected !== directoryValue) {
|
|
50
48
|
context.report({
|
|
51
49
|
messageId: "mismatched",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-package-json",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.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": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"detect-indent": "^7.0.1",
|
|
50
50
|
"detect-newline": "^4.0.1",
|
|
51
51
|
"eslint-fix-utils": "~0.4.0",
|
|
52
|
-
"package-json-validator": "~0.
|
|
52
|
+
"package-json-validator": "~0.23.0",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
54
|
"sort-object-keys": "^1.1.3",
|
|
55
55
|
"sort-package-json": "^3.0.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
60
|
-
"@eslint/js": "9.
|
|
60
|
+
"@eslint/js": "9.31.0",
|
|
61
61
|
"@release-it/conventional-changelog": "10.0.0",
|
|
62
62
|
"@types/eslint-plugin-markdown": "2.0.2",
|
|
63
63
|
"@types/estree": "1.0.7",
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
"@vitest/eslint-plugin": "1.3.3",
|
|
70
70
|
"console-fail-test": "0.5.0",
|
|
71
71
|
"create-typescript-app": "2.46.1",
|
|
72
|
-
"eslint": "9.
|
|
72
|
+
"eslint": "9.31.0",
|
|
73
73
|
"eslint-doc-generator": "2.2.0",
|
|
74
74
|
"eslint-plugin-eslint-plugin": "6.5.0",
|
|
75
|
-
"eslint-plugin-jsdoc": "51.
|
|
75
|
+
"eslint-plugin-jsdoc": "51.4.0",
|
|
76
76
|
"eslint-plugin-jsonc": "2.20.0",
|
|
77
77
|
"eslint-plugin-markdown": "5.1.0",
|
|
78
78
|
"eslint-plugin-n": "17.21.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"sentences-per-line": "0.3.0",
|
|
95
95
|
"tsup": "8.5.0",
|
|
96
96
|
"typescript": "5.8.2",
|
|
97
|
-
"typescript-eslint": "8.
|
|
97
|
+
"typescript-eslint": "8.37.0",
|
|
98
98
|
"vitest": "3.2.0"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|