eslint-plugin-package-json 0.55.0 → 0.56.1
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 -0
- package/lib/index.js +2 -1
- package/lib/rules/valid-properties.js +2 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## [0.56.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.56.0...v0.56.1) (2025-08-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **deps:** update dependency package-json-validator to ~0.30.0 ([#1241](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1241)) ([c3d247c](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/c3d247cc416d4bb0eee629fde3440224fe39eb59))
|
|
4
9
|
|
|
10
|
+
# [0.56.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.55.0...v0.56.0) (2025-08-25)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **valid-directories:** add new rule for validating `directories` ([#1224](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1224)) ([b1cc676](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/b1cc6762f7e46162e4a6bf067dd29af2983462c8)), closes [#825](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/825)
|
|
15
|
+
|
|
16
|
+
# [0.55.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.54.0...v0.55.0) (2025-08-22)
|
|
5
17
|
|
|
6
18
|
### Features
|
|
7
19
|
|
|
8
|
-
|
|
20
|
+
- add no-redundant-files to recommended ([#1232](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1232)) ([2a52f87](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/2a52f8797bff236f88232d139e2a9526c24e4b4c)), closes [#1231](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1231)
|
|
9
21
|
|
|
10
22
|
# [0.54.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.53.0...v0.54.0) (2025-08-15)
|
|
11
23
|
|
package/README.md
CHANGED
|
@@ -185,6 +185,7 @@ The default settings don't conflict, and Prettier plugins can quickly fix up ord
|
|
|
185
185
|
| [valid-dependencies](docs/rules/valid-dependencies.md) | Enforce that the `dependencies` property is valid. | ✔️ ✅ | | | |
|
|
186
186
|
| [valid-description](docs/rules/valid-description.md) | Enforce that the `description` property is valid. | ✔️ ✅ | | | |
|
|
187
187
|
| [valid-devDependencies](docs/rules/valid-devDependencies.md) | Enforce that the `devDependencies` property is valid. | ✔️ ✅ | | | |
|
|
188
|
+
| [valid-directories](docs/rules/valid-directories.md) | Enforce that the `directories` property is valid. | ✔️ ✅ | | | |
|
|
188
189
|
| [valid-exports](docs/rules/valid-exports.md) | Enforce that the `exports` property is valid. | ✔️ ✅ | | | |
|
|
189
190
|
| [valid-license](docs/rules/valid-license.md) | Enforce that the `license` property is valid. | ✔️ ✅ | | | |
|
|
190
191
|
| [valid-local-dependency](docs/rules/valid-local-dependency.md) | Checks existence of local dependencies in the package.json | | | | ❌ |
|
package/lib/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { plugin } from "./plugin.js";
|
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
const rules = plugin.rules;
|
|
5
5
|
const configs = plugin.configs;
|
|
6
|
+
var src_default = plugin;
|
|
6
7
|
|
|
7
8
|
//#endregion
|
|
8
|
-
export { configs,
|
|
9
|
+
export { configs, src_default as default, rules };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSimpleValidPropertyRule } from "../utils/createSimpleValidPropertyRule.js";
|
|
2
|
-
import { validateAuthor, validateBundleDependencies, validateConfig, validateCpu, validateDependencies, validateDescription, validateExports, validateLicense, validateScripts, validateType } from "package-json-validator";
|
|
2
|
+
import { validateAuthor, validateBundleDependencies, validateConfig, validateCpu, validateDependencies, validateDescription, validateDirectories, validateExports, validateLicense, validateScripts, validateType } from "package-json-validator";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/valid-properties.ts
|
|
5
5
|
const properties = [
|
|
@@ -13,6 +13,7 @@ const properties = [
|
|
|
13
13
|
["dependencies", validateDependencies],
|
|
14
14
|
["description", validateDescription],
|
|
15
15
|
["devDependencies", validateDependencies],
|
|
16
|
+
["directories", validateDirectories],
|
|
16
17
|
["exports", validateExports],
|
|
17
18
|
["license", validateLicense],
|
|
18
19
|
["optionalDependencies", validateDependencies],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-package-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.56.1",
|
|
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.30.0",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
54
|
"sort-object-keys": "^1.1.3",
|
|
55
55
|
"sort-package-json": "^3.3.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.34.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",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@vitest/coverage-v8": "3.2.0",
|
|
69
69
|
"@vitest/eslint-plugin": "1.3.3",
|
|
70
70
|
"console-fail-test": "0.5.0",
|
|
71
|
-
"eslint": "9.
|
|
71
|
+
"eslint": "9.34.0",
|
|
72
72
|
"eslint-doc-generator": "2.2.0",
|
|
73
73
|
"eslint-plugin-eslint-plugin": "7.0.0",
|
|
74
74
|
"eslint-plugin-jsdoc": "54.1.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"husky": "9.1.7",
|
|
82
82
|
"jiti": "2.5.0",
|
|
83
83
|
"jsonc-eslint-parser": "2.4.0",
|
|
84
|
-
"knip": "5.
|
|
84
|
+
"knip": "5.63.0",
|
|
85
85
|
"lint-staged": "16.1.0",
|
|
86
86
|
"markdownlint": "0.38.0",
|
|
87
87
|
"markdownlint-cli": "0.45.0",
|
|
@@ -93,14 +93,14 @@
|
|
|
93
93
|
"sentences-per-line": "0.3.0",
|
|
94
94
|
"tsdown": "0.14.0",
|
|
95
95
|
"typescript": "5.9.2",
|
|
96
|
-
"typescript-eslint": "8.
|
|
96
|
+
"typescript-eslint": "8.40.0",
|
|
97
97
|
"vitest": "3.2.0"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"eslint": ">=8.0.0",
|
|
101
101
|
"jsonc-eslint-parser": "^2.0.0"
|
|
102
102
|
},
|
|
103
|
-
"packageManager": "pnpm@10.
|
|
103
|
+
"packageManager": "pnpm@10.15.0",
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": "^=20.19.0 || >=22.12.0"
|
|
106
106
|
},
|