Enfore Markdown header style in linter (#28155)

This commit is contained in:
Franck Nijhof 2023-07-10 14:02:27 +02:00 committed by GitHub
parent 749fee0744
commit 87f859d7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 35 additions and 1 deletions

View File

@ -12,6 +12,7 @@ var remarkrc = {
["frontmatter"], ["frontmatter"],
["lint-fenced-code-flag"], ["lint-fenced-code-flag"],
["lint-no-shell-dollars"], ["lint-no-shell-dollars"],
["remark-lint-heading-style", "atx"],
[ [
"remark-lint-prohibited-strings", "remark-lint-prohibited-strings",
[ [

32
package-lock.json generated
View File

@ -12,6 +12,7 @@
"remark-frontmatter": "^4.0.1", "remark-frontmatter": "^4.0.1",
"remark-lint": "^9.1.2", "remark-lint": "^9.1.2",
"remark-lint-fenced-code-flag": "^3.1.2", "remark-lint-fenced-code-flag": "^3.1.2",
"remark-lint-heading-style": "^3.1.2",
"remark-lint-no-shell-dollars": "^3.1.2", "remark-lint-no-shell-dollars": "^3.1.2",
"remark-lint-prohibited-strings": "^3.1.0", "remark-lint-prohibited-strings": "^3.1.0",
"remark-stringify": "^10.0.3", "remark-stringify": "^10.0.3",
@ -2157,6 +2158,19 @@
"url": "https://github.com/sponsors/wooorm" "url": "https://github.com/sponsors/wooorm"
} }
}, },
"node_modules/mdast-util-heading-style": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/mdast-util-heading-style/-/mdast-util-heading-style-2.0.1.tgz",
"integrity": "sha512-0L5rthU4xKDVbw+UQ7D8Y8xOEsX4JXZvemWoEAsL+WAaeSH+TvVVwFnTb3G/OrjyP4VYQULoNWU+PdZfkmNu4A==",
"dev": true,
"dependencies": {
"@types/mdast": "^3.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/mdast-util-mdx-expression": { "node_modules/mdast-util-mdx-expression": {
"version": "1.3.2", "version": "1.3.2",
"resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.2.tgz", "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-1.3.2.tgz",
@ -3522,6 +3536,24 @@
"url": "https://opencollective.com/unified" "url": "https://opencollective.com/unified"
} }
}, },
"node_modules/remark-lint-heading-style": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/remark-lint-heading-style/-/remark-lint-heading-style-3.1.2.tgz",
"integrity": "sha512-0RkcRPV/H2bPFgeInzBkK1cWUwtFTm83I+Db/Z5tDY02GzKOosHLvxtJyj/1391/opAH1LYbHtHWffir99IUgw==",
"dev": true,
"dependencies": {
"@types/mdast": "^3.0.0",
"mdast-util-heading-style": "^2.0.0",
"unified": "^10.0.0",
"unified-lint-rule": "^2.0.0",
"unist-util-generated": "^2.0.0",
"unist-util-visit": "^4.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
}
},
"node_modules/remark-lint-no-shell-dollars": { "node_modules/remark-lint-no-shell-dollars": {
"version": "3.1.2", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/remark-lint-no-shell-dollars/-/remark-lint-no-shell-dollars-3.1.2.tgz", "resolved": "https://registry.npmjs.org/remark-lint-no-shell-dollars/-/remark-lint-no-shell-dollars-3.1.2.tgz",

View File

@ -7,6 +7,7 @@
"remark-frontmatter": "^4.0.1", "remark-frontmatter": "^4.0.1",
"remark-lint": "^9.1.2", "remark-lint": "^9.1.2",
"remark-lint-fenced-code-flag": "^3.1.2", "remark-lint-fenced-code-flag": "^3.1.2",
"remark-lint-heading-style": "^3.1.2",
"remark-lint-no-shell-dollars": "^3.1.2", "remark-lint-no-shell-dollars": "^3.1.2",
"remark-lint-prohibited-strings": "^3.1.0", "remark-lint-prohibited-strings": "^3.1.0",
"remark-stringify": "^10.0.3", "remark-stringify": "^10.0.3",

View File

@ -15,7 +15,7 @@ The debugging screen is split into four features, the first being the Step Detai
Automations created in YAML must have an [`id`](/docs/automation/yaml/#migrating-your-yaml-automations-to-automationsyaml) assigned in order for debugging traces to be stored. Automations created in YAML must have an [`id`](/docs/automation/yaml/#migrating-your-yaml-automations-to-automationsyaml) assigned in order for debugging traces to be stored.
#### Traces #### #### Traces
The last 5 traces are recorded for all automations. It is possible to change this by adding the following code to your automation. The last 5 traces are recorded for all automations. It is possible to change this by adding the following code to your automation.