-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Expand file tree
/
Copy path.remarkrc.js
More file actions
52 lines (45 loc) · 1.28 KB
/
.remarkrc.js
File metadata and controls
52 lines (45 loc) · 1.28 KB
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
"use strict";
const remarkrc = {
settings: {
bullet: "-",
commonmark: true,
emphasis: "_",
fence: "`",
incrementListMarker: true,
listItemIndent: 1,
strong: "*",
},
plugins: [
["frontmatter"],
// Code block hygiene
["lint-fenced-code-flag"],
["lint-no-shell-dollars"],
// Heading hygiene
["remark-lint-heading-increment"],
["remark-lint-heading-style", "atx"],
// List consistency
["remark-lint-unordered-list-marker-style", "-"],
["remark-lint-ordered-list-marker-style", "."],
["remark-lint-ordered-list-marker-value"],
// Branding and consistency
[
"remark-lint-prohibited-strings",
[
{ no: "[Hh]ome [Aa]ss?s?istant", yes: "Home Assistant" },
{ no: "[Ww]eb[Ss]ocket", yes: "WebSocket" },
{ no: "Github", yes: "GitHub" },
{
no: "https://www.home-assistant.io/",
yes: "/",
ignoreNextTo: ['"', '"'],
},
{ no: "Speech-[Tt]o-Text", yes: "Speech-to-text" },
{ no: "Text-[Tt]o-Speech", yes: "Text-to-speech" },
// Safe additions (do not require new packages)
{ no: "Home Assistant", yes: "Home Assistant" },
{ no: "websocket", yes: "WebSocket" }
],
],
],
};
module.exports = remarkrc;