@kazupon/eslint-config 0.17.0 → 0.18.0
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/README.md +8 -1
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/configs/index.d.cts +1 -0
- package/dist/configs/index.d.ts +1 -0
- package/dist/configs/markdown.d.cts +28 -0
- package/dist/configs/markdown.d.ts +28 -0
- package/dist/globs.d.cts +1 -0
- package/dist/globs.d.ts +1 -0
- package/dist/index.cjs +185 -56
- package/dist/index.js +174 -57
- package/dist/types/gens/eslint.d.cts +2 -1
- package/dist/types/gens/eslint.d.ts +2 -1
- package/dist/types/gens/imports.d.cts +139 -138
- package/dist/types/gens/imports.d.ts +139 -138
- package/dist/types/gens/javascript.d.cts +6 -1
- package/dist/types/gens/javascript.d.ts +6 -1
- package/dist/types/gens/markdown.d.cts +42 -0
- package/dist/types/gens/markdown.d.ts +42 -0
- package/dist/types/gens/unicorn.d.cts +153 -138
- package/dist/types/gens/unicorn.d.ts +153 -138
- package/dist/types/index.d.cts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +15 -10
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
export interface MarkdownRules {
|
|
3
|
+
/**
|
|
4
|
+
* Require languages for fenced code blocks.
|
|
5
|
+
*/
|
|
6
|
+
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
7
|
+
/**
|
|
8
|
+
* Enforce heading levels increment by one.
|
|
9
|
+
*/
|
|
10
|
+
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Disallow duplicate headings in the same document.
|
|
13
|
+
*/
|
|
14
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Disallow empty links.
|
|
17
|
+
*/
|
|
18
|
+
'markdown/no-empty-links'?: Linter.RuleEntry<[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Disallow HTML tags.
|
|
21
|
+
*/
|
|
22
|
+
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>;
|
|
23
|
+
/**
|
|
24
|
+
* Disallow invalid label references.
|
|
25
|
+
*/
|
|
26
|
+
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Disallow missing label references.
|
|
29
|
+
*/
|
|
30
|
+
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
31
|
+
}
|
|
32
|
+
type MarkdownFencedCodeLanguage = [] | [
|
|
33
|
+
{
|
|
34
|
+
required?: string[];
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
type MarkdownNoHtml = [] | [
|
|
38
|
+
{
|
|
39
|
+
allowed?: string[];
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
export interface MarkdownRules {
|
|
3
|
+
/**
|
|
4
|
+
* Require languages for fenced code blocks.
|
|
5
|
+
*/
|
|
6
|
+
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
7
|
+
/**
|
|
8
|
+
* Enforce heading levels increment by one.
|
|
9
|
+
*/
|
|
10
|
+
'markdown/heading-increment'?: Linter.RuleEntry<[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Disallow duplicate headings in the same document.
|
|
13
|
+
*/
|
|
14
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Disallow empty links.
|
|
17
|
+
*/
|
|
18
|
+
'markdown/no-empty-links'?: Linter.RuleEntry<[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Disallow HTML tags.
|
|
21
|
+
*/
|
|
22
|
+
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>;
|
|
23
|
+
/**
|
|
24
|
+
* Disallow invalid label references.
|
|
25
|
+
*/
|
|
26
|
+
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Disallow missing label references.
|
|
29
|
+
*/
|
|
30
|
+
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>;
|
|
31
|
+
}
|
|
32
|
+
type MarkdownFencedCodeLanguage = [] | [
|
|
33
|
+
{
|
|
34
|
+
required?: string[];
|
|
35
|
+
}
|
|
36
|
+
];
|
|
37
|
+
type MarkdownNoHtml = [] | [
|
|
38
|
+
{
|
|
39
|
+
allowed?: string[];
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
export {};
|