eslint-plugin-package-json 1.10.0 → 1.10.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/dist/index.mjs
CHANGED
|
@@ -93,7 +93,8 @@ const rule$21 = createRule({
|
|
|
93
93
|
//#endregion
|
|
94
94
|
//#region src/rules/exports-subpaths-style.ts
|
|
95
95
|
function isImplicitFormat$1(node) {
|
|
96
|
-
|
|
96
|
+
if (node.type === "JSONLiteral") return true;
|
|
97
|
+
return node.properties.every((property) => !isJSONStringLiteral(property.key) || !property.key.value.startsWith("."));
|
|
97
98
|
}
|
|
98
99
|
const rule$20 = createRule({
|
|
99
100
|
create(context) {
|
|
@@ -471,6 +472,7 @@ const rule$15 = createRule({
|
|
|
471
472
|
loc: properties[i].loc,
|
|
472
473
|
messageId: "incorrectOrder"
|
|
473
474
|
});
|
|
475
|
+
return;
|
|
474
476
|
}
|
|
475
477
|
} };
|
|
476
478
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-package-json",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Rules for consistent, readable, and valid package.json files. 🗂️",
|
|
5
5
|
"homepage": "https://github.com/michaelfaith/eslint-plugin-package-json#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"files": [
|
|
44
44
|
"dist/"
|
|
45
45
|
],
|
|
46
|
+
"lint-staged": {
|
|
47
|
+
"*": "oxfmt --no-error-on-unmatched-pattern"
|
|
48
|
+
},
|
|
46
49
|
"dependencies": {
|
|
47
50
|
"@altano/repository-tools": "^2.0.1",
|
|
48
51
|
"@types/estree": "^1.0.0",
|
|
@@ -59,23 +62,22 @@
|
|
|
59
62
|
},
|
|
60
63
|
"devDependencies": {
|
|
61
64
|
"@astrojs/check": "0.9.10",
|
|
62
|
-
"@astrojs/markdown-satteri": "0.4.
|
|
63
|
-
"@astrojs/starlight": "0.42.
|
|
65
|
+
"@astrojs/markdown-satteri": "0.4.2",
|
|
66
|
+
"@astrojs/starlight": "0.42.4",
|
|
64
67
|
"@catppuccin/starlight": "2.1.0",
|
|
65
68
|
"@eslint-community/eslint-plugin-eslint-comments": "4.8.1",
|
|
66
69
|
"@eslint/js": "10.0.1",
|
|
67
70
|
"@eslint/json": "2.1.0",
|
|
68
71
|
"@eslint/markdown": "8.0.3",
|
|
69
|
-
"@ianvs/prettier-plugin-sort-imports": "4.7.1",
|
|
70
72
|
"@types/node": "24.13.6",
|
|
71
73
|
"@types/semver": "7.8.0",
|
|
72
74
|
"@typescript/native": "npm:typescript@7.0.2",
|
|
73
75
|
"@vitest/coverage-v8": "5.0.1",
|
|
74
76
|
"@vitest/eslint-plugin": "1.6.27",
|
|
75
|
-
"astro": "7.3.
|
|
77
|
+
"astro": "7.3.5",
|
|
76
78
|
"astro-og-canvas": "0.13.2",
|
|
77
79
|
"canvaskit-wasm": "0.42.0",
|
|
78
|
-
"console-fail-test": "0.
|
|
80
|
+
"console-fail-test": "0.9.0",
|
|
79
81
|
"eslint": "10.11.0",
|
|
80
82
|
"eslint-doc-generator": "3.7.1",
|
|
81
83
|
"eslint-plugin-eslint-plugin": "7.6.2",
|
|
@@ -83,25 +85,22 @@
|
|
|
83
85
|
"eslint-plugin-jsonc": "3.4.2",
|
|
84
86
|
"eslint-plugin-n": "18.3.0",
|
|
85
87
|
"eslint-plugin-node-dependencies": "2.2.0",
|
|
86
|
-
"eslint-plugin-perfectionist": "5.
|
|
87
|
-
"eslint-plugin-regexp": "3.3.
|
|
88
|
-
"eslint-plugin-unicorn": "
|
|
88
|
+
"eslint-plugin-perfectionist": "5.12.1",
|
|
89
|
+
"eslint-plugin-regexp": "3.3.1",
|
|
90
|
+
"eslint-plugin-unicorn": "76.0.0",
|
|
89
91
|
"eslint-plugin-yml": "3.8.1",
|
|
90
92
|
"jiti": "2.7.0",
|
|
91
93
|
"json-schema-to-ts": "3.1.1",
|
|
92
|
-
"knip": "6.
|
|
94
|
+
"knip": "6.38.0",
|
|
95
|
+
"lint-staged": "17.6.0",
|
|
96
|
+
"oxfmt": "0.70.0",
|
|
93
97
|
"pkg-pr-new": "0.0.88",
|
|
94
|
-
"prettier": "3.9.8",
|
|
95
|
-
"prettier-plugin-curly": "0.4.1",
|
|
96
|
-
"prettier-plugin-packagejson": "3.0.2",
|
|
97
|
-
"prettier-plugin-sh": "0.19.0",
|
|
98
|
-
"pretty-quick": "4.2.2",
|
|
99
98
|
"sharp": "0.35.4",
|
|
100
99
|
"simple-git-hooks": "2.14.0",
|
|
101
100
|
"starlight-auto-sidebar": "0.4.1",
|
|
102
101
|
"tsdown": "0.23.0",
|
|
103
102
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
104
|
-
"typescript-eslint": "8.70.
|
|
103
|
+
"typescript-eslint": "8.70.1",
|
|
105
104
|
"vitest": "5.0.1"
|
|
106
105
|
},
|
|
107
106
|
"peerDependencies": {
|
|
@@ -119,7 +118,7 @@
|
|
|
119
118
|
"scripts": {
|
|
120
119
|
"build": "tsdown",
|
|
121
120
|
"docs:generate": "pnpm build --no-dts && eslint-doc-generator --ignore-config recommended-publishable",
|
|
122
|
-
"format": "
|
|
121
|
+
"format": "oxfmt",
|
|
123
122
|
"lint": "eslint . --max-warnings 0",
|
|
124
123
|
"lint:knip": "knip",
|
|
125
124
|
"site:build": "astro build",
|