@antfu/eslint-config 2.3.1 → 2.3.2
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/cli.cjs +2 -2
- package/dist/cli.js +2 -2
- package/dist/index.cjs +12 -3
- package/dist/index.js +12 -3
- package/package.json +5 -5
package/dist/cli.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_parse_gitignore = __toESM(require("parse-gitignore"), 1);
|
|
|
46
46
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "2.3.
|
|
49
|
+
var version = "2.3.2";
|
|
50
50
|
var devDependencies = {
|
|
51
51
|
"@antfu/eslint-config": "workspace:*",
|
|
52
52
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
@@ -74,7 +74,7 @@ var devDependencies = {
|
|
|
74
74
|
"simple-git-hooks": "^2.9.0",
|
|
75
75
|
tsup: "^8.0.1",
|
|
76
76
|
typescript: "^5.3.2",
|
|
77
|
-
vitest: "^0.
|
|
77
|
+
vitest: "^1.0.1"
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
// src/cli/constants.ts
|
package/dist/cli.js
CHANGED
|
@@ -17,7 +17,7 @@ import parse from "parse-gitignore";
|
|
|
17
17
|
import c from "picocolors";
|
|
18
18
|
|
|
19
19
|
// package.json
|
|
20
|
-
var version = "2.3.
|
|
20
|
+
var version = "2.3.2";
|
|
21
21
|
var devDependencies = {
|
|
22
22
|
"@antfu/eslint-config": "workspace:*",
|
|
23
23
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
@@ -45,7 +45,7 @@ var devDependencies = {
|
|
|
45
45
|
"simple-git-hooks": "^2.9.0",
|
|
46
46
|
tsup: "^8.0.1",
|
|
47
47
|
typescript: "^5.3.2",
|
|
48
|
-
vitest: "^0.
|
|
48
|
+
vitest: "^1.0.1"
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
// src/cli/constants.ts
|
package/dist/index.cjs
CHANGED
|
@@ -603,8 +603,16 @@ async function markdown(options = {}, formatMarkdown = false) {
|
|
|
603
603
|
} = options;
|
|
604
604
|
const markdown2 = await interopDefault(import("eslint-plugin-markdown"));
|
|
605
605
|
const baseProcessor = markdown2.processors.markdown;
|
|
606
|
-
const processor = !formatMarkdown ?
|
|
607
|
-
|
|
606
|
+
const processor = !formatMarkdown ? {
|
|
607
|
+
meta: {
|
|
608
|
+
name: "markdown-processor"
|
|
609
|
+
},
|
|
610
|
+
supportsAutofix: true,
|
|
611
|
+
...baseProcessor
|
|
612
|
+
} : {
|
|
613
|
+
meta: {
|
|
614
|
+
name: "markdown-processor-with-content"
|
|
615
|
+
},
|
|
608
616
|
postprocess(messages, filename) {
|
|
609
617
|
const markdownContent = messages.pop();
|
|
610
618
|
const codeSnippets = baseProcessor.postprocess(messages, filename);
|
|
@@ -622,7 +630,8 @@ async function markdown(options = {}, formatMarkdown = false) {
|
|
|
622
630
|
text
|
|
623
631
|
}
|
|
624
632
|
];
|
|
625
|
-
}
|
|
633
|
+
},
|
|
634
|
+
supportsAutofix: true
|
|
626
635
|
};
|
|
627
636
|
return [
|
|
628
637
|
{
|
package/dist/index.js
CHANGED
|
@@ -517,8 +517,16 @@ async function markdown(options = {}, formatMarkdown = false) {
|
|
|
517
517
|
} = options;
|
|
518
518
|
const markdown2 = await interopDefault(import("eslint-plugin-markdown"));
|
|
519
519
|
const baseProcessor = markdown2.processors.markdown;
|
|
520
|
-
const processor = !formatMarkdown ?
|
|
521
|
-
|
|
520
|
+
const processor = !formatMarkdown ? {
|
|
521
|
+
meta: {
|
|
522
|
+
name: "markdown-processor"
|
|
523
|
+
},
|
|
524
|
+
supportsAutofix: true,
|
|
525
|
+
...baseProcessor
|
|
526
|
+
} : {
|
|
527
|
+
meta: {
|
|
528
|
+
name: "markdown-processor-with-content"
|
|
529
|
+
},
|
|
522
530
|
postprocess(messages, filename) {
|
|
523
531
|
const markdownContent = messages.pop();
|
|
524
532
|
const codeSnippets = baseProcessor.postprocess(messages, filename);
|
|
@@ -536,7 +544,8 @@ async function markdown(options = {}, formatMarkdown = false) {
|
|
|
536
544
|
text
|
|
537
545
|
}
|
|
538
546
|
];
|
|
539
|
-
}
|
|
547
|
+
},
|
|
548
|
+
supportsAutofix: true
|
|
540
549
|
};
|
|
541
550
|
return [
|
|
542
551
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antfu/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.2",
|
|
5
5
|
"packageManager": "pnpm@8.11.0",
|
|
6
6
|
"description": "Anthony's ESLint config",
|
|
7
7
|
"author": "Anthony Fu <anthonyfu117@hotmail.com> (https://github.com/antfu/)",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@eslint-types/typescript-eslint": "^6.12.0",
|
|
57
57
|
"@eslint-types/unicorn": "^49.0.0",
|
|
58
58
|
"@stylistic/eslint-plugin": "^1.5.0-beta.0",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^6.13.
|
|
60
|
-
"@typescript-eslint/parser": "^6.13.
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
60
|
+
"@typescript-eslint/parser": "^6.13.2",
|
|
61
61
|
"eslint-config-flat-gitignore": "^0.1.2",
|
|
62
62
|
"eslint-plugin-antfu": "^2.0.0",
|
|
63
63
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
"simple-git-hooks": "^2.9.0",
|
|
110
110
|
"tsup": "^8.0.1",
|
|
111
111
|
"typescript": "^5.3.2",
|
|
112
|
-
"vitest": "^0.
|
|
113
|
-
"@antfu/eslint-config": "2.3.
|
|
112
|
+
"vitest": "^1.0.1",
|
|
113
|
+
"@antfu/eslint-config": "2.3.2"
|
|
114
114
|
},
|
|
115
115
|
"simple-git-hooks": {
|
|
116
116
|
"pre-commit": "pnpm lint-staged"
|