@jiakun-zhao/eslint-config 4.0.3 → 4.0.4
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 +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -372,7 +372,7 @@ function jsonc() {
|
|
|
372
372
|
];
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
const version = "4.0.
|
|
375
|
+
const version = "4.0.4";
|
|
376
376
|
|
|
377
377
|
function isDocumentStart(node) {
|
|
378
378
|
return node.range[0] === 0;
|
|
@@ -451,7 +451,7 @@ const _noBlankInAstroFrontmatterEdge = createRule({
|
|
|
451
451
|
if (right && right.value === "---" && left && left.value !== "---" && numOfLines(left, right) !== 1) {
|
|
452
452
|
context.report({
|
|
453
453
|
fix: (fixer) => fixer.replaceTextRange([left.range[1], right.range[0]], "\n"),
|
|
454
|
-
loc: { start:
|
|
454
|
+
loc: { start: left.loc.end, end: right.loc.start },
|
|
455
455
|
messageId: "unexpectedBlank"
|
|
456
456
|
});
|
|
457
457
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiakun-zhao/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.4",
|
|
5
5
|
"description": "Jiakun Zhao's ESLint config.",
|
|
6
6
|
"author": "Jiakun Zhao <hi@zhaojiakun.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "unbuild",
|
|
71
71
|
"dev": "config-inspector --open=false",
|
|
72
|
-
"release": "bumpp && pnpm publish && npx cnpm sync @jiakun-zhao/eslint-config",
|
|
72
|
+
"release": "pnpm typegen && bumpp && pnpm publish && npx cnpm sync @jiakun-zhao/eslint-config",
|
|
73
73
|
"stub": "unbuild --stub",
|
|
74
74
|
"test": "vitest",
|
|
75
75
|
"typegen": "tsx ./scripts/typegen.ts"
|