eslint-plugin-package-json 0.47.1 → 0.48.0
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 +8 -2
- package/README.md +1 -0
- package/lib/rules/valid-properties.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# [0.48.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.47.1...v0.48.0) (2025-07-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **valid-cpu:** add new rule for validating `cpu` ([#1192](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1192)) ([b52cd7c](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/b52cd7c3d4808d49ad99e0b8a82763e608f03550)), closes [#821](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/821)
|
|
4
9
|
|
|
10
|
+
## [0.47.1](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.47.0...v0.47.1) (2025-07-30)
|
|
5
11
|
|
|
6
12
|
### Bug Fixes
|
|
7
13
|
|
|
8
|
-
|
|
14
|
+
- **no-empty-fields:** don't throw error on empty object ([#1190](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1190)) ([8a9ba8a](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/8a9ba8acb1d68fd1040a008dfdb185b6908284a2)), closes [#1188](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1188)
|
|
9
15
|
|
|
10
16
|
# [0.47.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.46.0...v0.47.0) (2025-07-25)
|
|
11
17
|
|
package/README.md
CHANGED
|
@@ -141,6 +141,7 @@ The default settings don't conflict, and Prettier plugins can quickly fix up ord
|
|
|
141
141
|
| [valid-bin](docs/rules/valid-bin.md) | Enforce that the `bin` property is valid. | ✔️ ✅ | | 💡 | |
|
|
142
142
|
| [valid-bundleDependencies](docs/rules/valid-bundleDependencies.md) | Enforce that the `bundleDependencies` (also: `bundledDependencies`) property is valid. | ✔️ ✅ | | | |
|
|
143
143
|
| [valid-config](docs/rules/valid-config.md) | Enforce that the `config` property is valid. | ✔️ ✅ | | | |
|
|
144
|
+
| [valid-cpu](docs/rules/valid-cpu.md) | Enforce that the `cpu` property is valid. | ✔️ ✅ | | | |
|
|
144
145
|
| [valid-license](docs/rules/valid-license.md) | Enforce that the `license` property is valid. | ✔️ ✅ | | | |
|
|
145
146
|
| [valid-local-dependency](docs/rules/valid-local-dependency.md) | Checks existence of local dependencies in the package.json | | | | ❌ |
|
|
146
147
|
| [valid-name](docs/rules/valid-name.md) | Enforce that package names are valid npm package names | ✔️ ✅ | | | |
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
validateAuthor,
|
|
3
3
|
validateBundleDependencies,
|
|
4
4
|
validateConfig,
|
|
5
|
+
validateCpu,
|
|
5
6
|
validateLicense,
|
|
6
7
|
validateScripts,
|
|
7
8
|
validateType
|
|
@@ -19,6 +20,7 @@ const properties = [
|
|
|
19
20
|
}
|
|
20
21
|
],
|
|
21
22
|
["config", validateConfig],
|
|
23
|
+
["cpu", validateCpu],
|
|
22
24
|
["license", validateLicense],
|
|
23
25
|
["scripts", validateScripts],
|
|
24
26
|
["type", validateType]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-package-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
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.24.1",
|
|
53
53
|
"semver": "^7.5.4",
|
|
54
54
|
"sort-object-keys": "^1.1.3",
|
|
55
55
|
"sort-package-json": "^3.0.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"eslint-plugin-regexp": "2.9.0",
|
|
81
81
|
"eslint-plugin-yml": "1.18.0",
|
|
82
82
|
"husky": "9.1.7",
|
|
83
|
-
"jiti": "2.
|
|
83
|
+
"jiti": "2.5.0",
|
|
84
84
|
"jsonc-eslint-parser": "2.4.0",
|
|
85
85
|
"knip": "5.62.0",
|
|
86
86
|
"lint-staged": "16.1.0",
|