eslint-plugin-package-json 0.66.0 → 0.68.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 +14 -2
- package/README.md +2 -0
- package/lib/rules/valid-properties.js +3 -1
- package/package.json +18 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
# [0.
|
|
3
|
+
# [0.68.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.67.0...v0.68.0) (2025-11-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **valid-keywords:** add new rule for validating `keywords` ([#1381](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1381)) ([a227184](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/a2271843a104288376da9b1fbc89e1de33444a38)), closes [#829](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/829)
|
|
4
9
|
|
|
10
|
+
# [0.67.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.66.0...v0.67.0) (2025-11-12)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **valid-files:** add new rule for validating `files` ([#1380](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1380)) ([d2a81d3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/d2a81d3c1c86a24c675fb2ff8483a7e01400b294)), closes [#827](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/827)
|
|
15
|
+
|
|
16
|
+
# [0.66.0](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.65.3...v0.66.0) (2025-11-11)
|
|
5
17
|
|
|
6
18
|
### Features
|
|
7
19
|
|
|
8
|
-
|
|
20
|
+
- **valid-homepage:** add new rule for validating `homepage` ([#1376](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/1376)) ([34ad9b8](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/commit/34ad9b8dda81601e9f710dc66c61a02fe7ecfa0e)), closes [#828](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/828)
|
|
9
21
|
|
|
10
22
|
## [0.65.3](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/compare/v0.65.2...v0.65.3) (2025-11-10)
|
|
11
23
|
|
package/README.md
CHANGED
|
@@ -221,7 +221,9 @@ The default settings don't conflict, and Prettier plugins can quickly fix up ord
|
|
|
221
221
|
| [valid-devDependencies](docs/rules/valid-devDependencies.md) | Enforce that the `devDependencies` property is valid. | ✔️ ✅ | | | |
|
|
222
222
|
| [valid-directories](docs/rules/valid-directories.md) | Enforce that the `directories` property is valid. | ✔️ ✅ | | | |
|
|
223
223
|
| [valid-exports](docs/rules/valid-exports.md) | Enforce that the `exports` property is valid. | ✔️ ✅ | | | |
|
|
224
|
+
| [valid-files](docs/rules/valid-files.md) | Enforce that the `files` property is valid. | ✔️ ✅ | | | |
|
|
224
225
|
| [valid-homepage](docs/rules/valid-homepage.md) | Enforce that the `homepage` property is valid. | ✔️ ✅ | | | |
|
|
226
|
+
| [valid-keywords](docs/rules/valid-keywords.md) | Enforce that the `keywords` property is valid. | ✔️ ✅ | | | |
|
|
225
227
|
| [valid-license](docs/rules/valid-license.md) | Enforce that the `license` property is valid. | ✔️ ✅ | | | |
|
|
226
228
|
| [valid-local-dependency](docs/rules/valid-local-dependency.md) | Checks existence of local dependencies in the package.json | | | | ❌ |
|
|
227
229
|
| [valid-name](docs/rules/valid-name.md) | Enforce that package names are valid npm package names | ✔️ ✅ | | | |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createSimpleValidPropertyRule } from "../utils/createSimpleValidPropertyRule.js";
|
|
2
|
-
import { validateAuthor, validateBin, validateBundleDependencies, validateConfig, validateCpu, validateDependencies, validateDescription, validateDirectories, validateExports, validateHomepage, validateLicense, validateScripts, validateType } from "package-json-validator";
|
|
2
|
+
import { validateAuthor, validateBin, validateBundleDependencies, validateConfig, validateCpu, validateDependencies, validateDescription, validateDirectories, validateExports, validateFiles, validateHomepage, validateKeywords, validateLicense, validateScripts, validateType } from "package-json-validator";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/valid-properties.ts
|
|
5
5
|
const properties = [
|
|
@@ -16,7 +16,9 @@ const properties = [
|
|
|
16
16
|
["devDependencies", validateDependencies],
|
|
17
17
|
["directories", validateDirectories],
|
|
18
18
|
["exports", validateExports],
|
|
19
|
+
["files", validateFiles],
|
|
19
20
|
["homepage", validateHomepage],
|
|
21
|
+
["keywords", validateKeywords],
|
|
20
22
|
["license", validateLicense],
|
|
21
23
|
["optionalDependencies", validateDependencies],
|
|
22
24
|
["peerDependencies", validateDependencies],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-package-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.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": {
|
|
@@ -11,10 +11,22 @@
|
|
|
11
11
|
"url": "git+https://github.com/JoshuaKGoldberg/eslint-plugin-package-json.git"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
"contributors": [
|
|
15
|
+
{
|
|
16
|
+
"name": "James Zetlen",
|
|
17
|
+
"email": "zetlen@gmail.com"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "JoshuaKGoldberg",
|
|
21
|
+
"email": "npm@joshuakgoldberg.com",
|
|
22
|
+
"url": "https://joshuakgoldberg.com"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "michael faith",
|
|
26
|
+
"email": "michaelfaith@users.noreply.github.com",
|
|
27
|
+
"url": "https://michael.faith"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
18
30
|
"type": "module",
|
|
19
31
|
"exports": {
|
|
20
32
|
".": {
|
|
@@ -48,7 +60,7 @@
|
|
|
48
60
|
"detect-indent": "^7.0.2",
|
|
49
61
|
"detect-newline": "^4.0.1",
|
|
50
62
|
"eslint-fix-utils": "~0.4.0",
|
|
51
|
-
"package-json-validator": "~0.
|
|
63
|
+
"package-json-validator": "~0.58.0",
|
|
52
64
|
"semver": "^7.7.3",
|
|
53
65
|
"sort-object-keys": "^2.0.0",
|
|
54
66
|
"sort-package-json": "^3.4.0",
|