-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
88 lines (83 loc) · 3.74 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import frontmatter from "remark-frontmatter";
import gfm from "remark-gfm";
import lintCodeBlockSyntax from "remark-lint-code-block-syntax";
import lintFileExtension from "remark-lint-file-extension";
import lintFinalDefinition from "remark-lint-final-definition";
import lintFinalNewline from "remark-lint-final-newline";
import lintFirstHeadingLevel from "remark-lint-first-heading-level";
import lintHeadingIncrement from "remark-lint-heading-increment";
import lintLinebreakStyle from "remark-lint-linebreak-style";
// eslint-disable-next-line import/no-extraneous-dependencies
import lintListItemBulletIndent from "remark-lint-list-item-bullet-indent";
// eslint-disable-next-line import/no-extraneous-dependencies
import lintListItemIndent from "remark-lint-list-item-indent";
import lintNoConsecutiveBlankLines from "remark-lint-no-consecutive-blank-lines";
import lintNoDuplicateDefinedUrls from "remark-lint-no-duplicate-defined-urls";
import lintNoDuplicateHeadings from "remark-lint-no-duplicate-headings";
import lintNoEmphasisAsHeading from "remark-lint-no-emphasis-as-heading";
import lintNoEmptyUrl from "remark-lint-no-empty-url";
import lintNoFileNameArticles from "remark-lint-no-file-name-articles";
import lintNoFileNameConsecutiveDashes from "remark-lint-no-file-name-consecutive-dashes";
import lintNoFileNameIrregularCharacters from "remark-lint-no-file-name-irregular-characters";
import lintNoFileNameMixedCase from "remark-lint-no-file-name-mixed-case";
import lintNoFileNameOuterDashes from "remark-lint-no-file-name-outer-dashes";
import lintNoHeadingLikeParagraph from "remark-lint-no-heading-like-paragraph";
import lintNoHeadingPunctuation from "remark-lint-no-heading-punctuation";
import lintNoMissingBlankLines from "remark-lint-no-missing-blank-lines";
import lintNoMultipleToplevelHeadings from "remark-lint-no-multiple-toplevel-headings";
import lintNoParagraphContentIndent from "remark-lint-no-paragraph-content-indent";
import lintNoReferenceLikeUrl from "remark-lint-no-reference-like-url";
import lintNoShellDollars from "remark-lint-no-shell-dollars";
import lintNoTableIndentation from "remark-lint-no-table-indentation";
import lintNoTabs from "remark-lint-no-tabs";
import lintNoUnneededFullReferenceImage from "remark-lint-no-unneeded-full-reference-image";
import lintNoUnneededFullReferenceLink from "remark-lint-no-unneeded-full-reference-link";
import lintStrikethroughMarker from "remark-lint-strikethrough-marker";
import lintTablePipes from "remark-lint-table-pipes";
import presetLintRecommended from "remark-preset-lint-recommended";
import validateLinks from "remark-validate-links";
export default {
plugins: [
// Parser
frontmatter,
gfm,
// Preset
presetLintRecommended,
// NOTE: Avoid conflicts with Prettier.
[lintListItemBulletIndent, false],
[lintListItemIndent, false],
// Lint rule
lintCodeBlockSyntax,
lintFileExtension,
lintFinalDefinition,
lintFinalNewline,
lintFirstHeadingLevel,
lintHeadingIncrement,
lintLinebreakStyle,
lintNoConsecutiveBlankLines,
lintNoDuplicateDefinedUrls,
lintNoDuplicateHeadings,
lintNoEmphasisAsHeading,
lintNoEmptyUrl,
lintNoFileNameArticles,
lintNoFileNameConsecutiveDashes,
lintNoFileNameIrregularCharacters,
lintNoFileNameMixedCase,
lintNoFileNameOuterDashes,
lintNoHeadingLikeParagraph,
lintNoHeadingPunctuation,
[lintNoMissingBlankLines, { exceptTightLists: true }],
lintNoMultipleToplevelHeadings,
lintNoParagraphContentIndent,
lintNoReferenceLikeUrl,
lintNoShellDollars,
lintNoTableIndentation,
lintNoTabs,
lintNoUnneededFullReferenceImage,
lintNoUnneededFullReferenceLink,
[lintStrikethroughMarker, "~~"],
lintTablePipes,
// Validator
validateLinks,
],
};