eslint-plugin-package-json 0.74.0 → 0.75.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 CHANGED
@@ -1,11 +1,19 @@
1
1
  # Changelog
2
2
 
3
- # [0.74.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.73.0...v0.74.0) (2025-11-14)
3
+ # [0.75.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.73.0...v0.75.0) (2025-11-15)
4
4
 
5
5
 
6
6
  ### Features
7
7
 
8
+ * **valid-man:** add new rule for validating `man` ([#1392](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1392)) ([3f1ffc5](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/3f1ffc57a924c080892dd66bc5ce7a011ca70451)), closes [#832](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/832)
8
9
  * **valid-publishConfig:** add new rule for validating `publishConfig` ([#1388](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1388)) ([6d1fab4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/6d1fab4e4b6c59e7bcfc582ef75a0e07a5c8ea08)), closes [#841](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/841)
10
+ * **valid-workspaces:** add new rule for validating `workspaces` ([#1396](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1396)) ([2eeca42](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/2eeca42701a8636704e3d6b896cf3eec21531779)), closes [#843](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/843)
11
+
12
+ # [0.74.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.73.0...v0.74.0) (2025-11-14)
13
+
14
+ ### Features
15
+
16
+ - **valid-publishConfig:** add new rule for validating `publishConfig` ([#1388](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1388)) ([6d1fab4](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/6d1fab4e4b6c59e7bcfc582ef75a0e07a5c8ea08)), closes [#841](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/841)
9
17
 
10
18
  # [0.73.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.72.0...v0.73.0) (2025-11-13)
11
19
 
package/README.md CHANGED
@@ -228,6 +228,7 @@ The default settings don't conflict, and Prettier plugins can quickly fix up ord
228
228
  | [valid-license](docs/rules/valid-license.md) | Enforce that the `license` property is valid. | ✔️ ✅ | | | |
229
229
  | [valid-local-dependency](docs/rules/valid-local-dependency.md) | Checks existence of local dependencies in the package.json | | | | ❌ |
230
230
  | [valid-main](docs/rules/valid-main.md) | Enforce that the `main` property is valid. | ✔️ ✅ | | | |
231
+ | [valid-man](docs/rules/valid-man.md) | Enforce that the `man` property is valid. | ✔️ ✅ | | | |
231
232
  | [valid-name](docs/rules/valid-name.md) | Enforce that package names are valid npm package names | ✔️ ✅ | | | |
232
233
  | [valid-optionalDependencies](docs/rules/valid-optionalDependencies.md) | Enforce that the `optionalDependencies` property is valid. | ✔️ ✅ | | | |
233
234
  | [valid-os](docs/rules/valid-os.md) | Enforce that the `os` property is valid. | ✔️ ✅ | | | |
@@ -239,6 +240,7 @@ The default settings don't conflict, and Prettier plugins can quickly fix up ord
239
240
  | [valid-scripts](docs/rules/valid-scripts.md) | Enforce that the `scripts` property is valid. | ✔️ ✅ | | | |
240
241
  | [valid-type](docs/rules/valid-type.md) | Enforce that the `type` property is valid. | ✔️ ✅ | | | |
241
242
  | [valid-version](docs/rules/valid-version.md) | Enforce that package versions are valid semver specifiers | ✔️ ✅ | | | |
243
+ | [valid-workspaces](docs/rules/valid-workspaces.md) | Enforce that the `workspaces` property is valid. | ✔️ ✅ | | | |
242
244
 
243
245
  <!-- end auto-generated rules list -->
244
246
  <!-- prettier-ignore-end -->
@@ -1,5 +1,5 @@
1
1
  import { createSimpleValidPropertyRule } from "../utils/createSimpleValidPropertyRule.mjs";
2
- import { validateAuthor, validateBin, validateBundleDependencies, validateConfig, validateContributors, validateCpu, validateDependencies, validateDescription, validateDirectories, validateExports, validateFiles, validateHomepage, validateKeywords, validateLicense, validateMain, validateOs, validatePrivate, validatePublishConfig, validateScripts, validateType } from "package-json-validator";
2
+ import { validateAuthor, validateBin, validateBundleDependencies, validateConfig, validateContributors, validateCpu, validateDependencies, validateDescription, validateDirectories, validateExports, validateFiles, validateHomepage, validateKeywords, validateLicense, validateMain, validateMan, validateOs, validatePrivate, validatePublishConfig, validateScripts, validateType, validateWorkspaces } from "package-json-validator";
3
3
 
4
4
  //#region src/rules/valid-properties.ts
5
5
  const properties = [
@@ -22,13 +22,15 @@ const properties = [
22
22
  ["keywords", validateKeywords],
23
23
  ["license", validateLicense],
24
24
  ["main", validateMain],
25
+ ["man", validateMan],
25
26
  ["optionalDependencies", validateDependencies],
26
27
  ["os", validateOs],
27
28
  ["peerDependencies", validateDependencies],
28
29
  ["private", validatePrivate],
29
30
  ["publishConfig", validatePublishConfig],
30
31
  ["scripts", validateScripts],
31
- ["type", validateType]
32
+ ["type", validateType],
33
+ ["workspaces", validateWorkspaces]
32
34
  ];
33
35
  /** All basic valid- flavor rules */
34
36
  const rules = Object.fromEntries(properties.map(([propertyName, validationFunctionOrOptions]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-package-json",
3
- "version": "0.74.0",
3
+ "version": "0.75.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": {
@@ -90,7 +90,7 @@
90
90
  "jiti": "2.6.0",
91
91
  "json-schema-to-ts": "3.1.1",
92
92
  "jsonc-eslint-parser": "2.4.1",
93
- "knip": "5.67.0",
93
+ "knip": "5.68.0",
94
94
  "lint-staged": "16.2.0",
95
95
  "markdownlint": "0.39.0",
96
96
  "markdownlint-cli": "0.45.0",