File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,28 @@ import rules from "./build/rules.js";
19
19
20
20
/** @typedef {import("eslint").Linter.RulesRecord } RulesRecord*/
21
21
/** @typedef {import("eslint").Linter.Config } Config*/
22
- /** @typedef {import("eslint").ESLint.Plugin } Plugin */
22
+ /** @typedef {import("eslint").Linter.LegacyConfig } LegacyConfig*/
23
+ /** @typedef {import("eslint").Linter.Processor } Processor*/
24
+ /**
25
+ * @typedef {import("eslint").ESLint.Plugin &
26
+ * { meta: {
27
+ * name: string;
28
+ * version: string;
29
+ * }} &
30
+ * { processors: {
31
+ * markdown: Processor;
32
+ * }} &
33
+ * { languages: {
34
+ * commonmark: Language;
35
+ * gfm: Language;
36
+ * }} &
37
+ * { configs: {
38
+ * "recommended-legacy": LegacyConfig;
39
+ * recommended: Config[];
40
+ * processor: Config[];
41
+ * }}
42
+ * } Plugin
43
+ */
23
44
/**
24
45
* @typedef {import("./types.ts").MarkdownRuleDefinition<Options> } MarkdownRuleDefinition<Options>
25
46
* @template {Partial<import("./types.ts").MarkdownRuleDefinitionTypeOptions>} [Options={}]
@@ -57,6 +78,7 @@ const processorRulesConfig = {
57
78
58
79
let recommendedPlugins , processorPlugins ;
59
80
81
+ /** @type {Plugin } */
60
82
const plugin = {
61
83
meta : {
62
84
name : "@eslint/markdown" ,
Original file line number Diff line number Diff line change 4
4
"emitDeclarationOnly" : false ,
5
5
"noEmit" : true ,
6
6
"rootDir" : " ../.." ,
7
- "strict" : true
7
+ "strict" : true ,
8
+ "exactOptionalPropertyTypes" : true
8
9
},
9
10
"files" : [],
10
11
"include" : [" ." , " ../../dist" ]
You can’t perform that action at this time.
0 commit comments