@debbl/eslint-config 3.8.6 → 3.8.9
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.cjs +2 -22
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -22
- package/package.json +2 -9
package/dist/index.cjs
CHANGED
|
@@ -602,29 +602,9 @@ var jsonc = async (options) => {
|
|
|
602
602
|
};
|
|
603
603
|
|
|
604
604
|
// src/configs/markdown.ts
|
|
605
|
-
async function mdx() {
|
|
606
|
-
const pluginMdx = await interopDefault(import("eslint-plugin-mdx"));
|
|
607
|
-
return [
|
|
608
|
-
{
|
|
609
|
-
...pluginMdx.flat,
|
|
610
|
-
processor: pluginMdx.createRemarkProcessor({
|
|
611
|
-
lintCodeBlocks: true,
|
|
612
|
-
languageMapper: {}
|
|
613
|
-
})
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
...pluginMdx.flatCodeBlocks,
|
|
617
|
-
rules: {
|
|
618
|
-
...pluginMdx.flatCodeBlocks.rules,
|
|
619
|
-
"no-var": "error",
|
|
620
|
-
"prefer-const": "error"
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
];
|
|
624
|
-
}
|
|
625
605
|
var markdown = async (options) => {
|
|
626
606
|
const {
|
|
627
|
-
mdx:
|
|
607
|
+
mdx: _enableMdx = false,
|
|
628
608
|
componentExts = [],
|
|
629
609
|
overrides = {}
|
|
630
610
|
} = options;
|
|
@@ -695,7 +675,7 @@ var markdown = async (options) => {
|
|
|
695
675
|
}
|
|
696
676
|
}
|
|
697
677
|
];
|
|
698
|
-
return
|
|
678
|
+
return _markdown;
|
|
699
679
|
};
|
|
700
680
|
|
|
701
681
|
// src/configs/node.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -24,6 +24,9 @@ declare const jsonc: JsoncConfig;
|
|
|
24
24
|
|
|
25
25
|
type MarkdownConfig = (options: {
|
|
26
26
|
componentExts?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated remove this option
|
|
29
|
+
*/
|
|
27
30
|
mdx?: boolean;
|
|
28
31
|
} & OptionsOverrides) => ReturnType<ConfigFn>;
|
|
29
32
|
declare const markdown: MarkdownConfig;
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ declare const jsonc: JsoncConfig;
|
|
|
24
24
|
|
|
25
25
|
type MarkdownConfig = (options: {
|
|
26
26
|
componentExts?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated remove this option
|
|
29
|
+
*/
|
|
27
30
|
mdx?: boolean;
|
|
28
31
|
} & OptionsOverrides) => ReturnType<ConfigFn>;
|
|
29
32
|
declare const markdown: MarkdownConfig;
|
package/dist/index.js
CHANGED
|
@@ -519,29 +519,9 @@ var jsonc = async (options) => {
|
|
|
519
519
|
};
|
|
520
520
|
|
|
521
521
|
// src/configs/markdown.ts
|
|
522
|
-
async function mdx() {
|
|
523
|
-
const pluginMdx = await interopDefault(import("eslint-plugin-mdx"));
|
|
524
|
-
return [
|
|
525
|
-
{
|
|
526
|
-
...pluginMdx.flat,
|
|
527
|
-
processor: pluginMdx.createRemarkProcessor({
|
|
528
|
-
lintCodeBlocks: true,
|
|
529
|
-
languageMapper: {}
|
|
530
|
-
})
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
...pluginMdx.flatCodeBlocks,
|
|
534
|
-
rules: {
|
|
535
|
-
...pluginMdx.flatCodeBlocks.rules,
|
|
536
|
-
"no-var": "error",
|
|
537
|
-
"prefer-const": "error"
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
];
|
|
541
|
-
}
|
|
542
522
|
var markdown = async (options) => {
|
|
543
523
|
const {
|
|
544
|
-
mdx:
|
|
524
|
+
mdx: _enableMdx = false,
|
|
545
525
|
componentExts = [],
|
|
546
526
|
overrides = {}
|
|
547
527
|
} = options;
|
|
@@ -612,7 +592,7 @@ var markdown = async (options) => {
|
|
|
612
592
|
}
|
|
613
593
|
}
|
|
614
594
|
];
|
|
615
|
-
return
|
|
595
|
+
return _markdown;
|
|
616
596
|
};
|
|
617
597
|
|
|
618
598
|
// src/configs/node.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@debbl/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.9",
|
|
5
5
|
"description": "Brendan Dash's ESLint config",
|
|
6
6
|
"author": "Debbl <me@aiwan.run> (https://github.com/Debbl/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -23,13 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"eslint": ">=
|
|
27
|
-
"eslint-plugin-mdx": ">=3.1.5"
|
|
28
|
-
},
|
|
29
|
-
"peerDependenciesMeta": {
|
|
30
|
-
"eslint-plugin-mdx": {
|
|
31
|
-
"optional": true
|
|
32
|
-
}
|
|
26
|
+
"eslint": ">=9"
|
|
33
27
|
},
|
|
34
28
|
"dependencies": {
|
|
35
29
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
@@ -72,7 +66,6 @@
|
|
|
72
66
|
"@types/react": "^19.0.2",
|
|
73
67
|
"bumpp": "^9.9.2",
|
|
74
68
|
"eslint": "^9.17.0",
|
|
75
|
-
"eslint-plugin-mdx": "^3.1.5",
|
|
76
69
|
"execa": "^9.5.2",
|
|
77
70
|
"fast-glob": "^3.3.2",
|
|
78
71
|
"fs-extra": "^11.2.0",
|