remark-lint-no-multiple-toplevel-headings
Advanced tools
Comparing version 3.1.1 to 3.1.2
export default remarkLintNoMultipleToplevelHeadings | ||
export type Root = import('mdast').Root | ||
export type Heading = import('mdast').Heading | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = Heading['depth'] | ||
@@ -8,2 +11,4 @@ declare const remarkLintNoMultipleToplevelHeadings: import('unified').Plugin< | ||
| [ | ||
| 1 | ||
| 2 | ||
| 3 | ||
@@ -13,13 +18,11 @@ | 4 | ||
| 6 | ||
| import('unified-lint-rule').Label | ||
| import('unified-lint-rule').Severity | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule/lib/index.js').Label | ||
| import('unified-lint-rule/lib/index.js').Severity | ||
), | ||
(1 | 2 | 3 | 4 | 5 | 6 | undefined)? | ||
] | ||
| undefined | ||
] | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule').Label | ||
| import('unified-lint-rule').Severity | ||
), | ||
1 | 2 | 3 | 4 | 5 | 6 | undefined | ||
], | ||
@@ -26,0 +29,0 @@ import('mdast').Root, |
12
index.js
@@ -26,3 +26,3 @@ /** | ||
* @example | ||
* {"name": "ok.md", "setting": 1} | ||
* {"name": "ok.md", "config": 1} | ||
* | ||
@@ -34,3 +34,3 @@ * # Foo | ||
* @example | ||
* {"name": "not-ok.md", "setting": 1, "label": "input"} | ||
* {"name": "not-ok.md", "config": 1, "label": "input"} | ||
* | ||
@@ -42,3 +42,3 @@ * # Foo | ||
* @example | ||
* {"name": "not-ok.md", "setting": 1, "label": "output"} | ||
* {"name": "not-ok.md", "config": 1, "label": "output"} | ||
* | ||
@@ -51,3 +51,7 @@ * 3:1-3:6: Don’t use multiple top level headings (1:1) | ||
* @typedef {import('mdast').Heading} Heading | ||
*/ | ||
/** | ||
* @typedef {Heading['depth']} Options | ||
* Options. | ||
*/ | ||
@@ -68,3 +72,3 @@ | ||
(tree, file, option = 1) => { | ||
/** @type {string|undefined} */ | ||
/** @type {string | undefined} */ | ||
let duplicate | ||
@@ -71,0 +75,0 @@ |
{ | ||
"name": "remark-lint-no-multiple-toplevel-headings", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "remark-lint rule to warn when multiple top level headings are used", | ||
@@ -45,5 +45,3 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
}, | ||
"scripts": {}, | ||
"xo": false, | ||
@@ -50,0 +48,0 @@ "typeCoverage": { |
@@ -58,13 +58,13 @@ <!--This file is generated--> | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import remarkLintNoMultipleToplevelHeadings from 'https://cdn.skypack.dev/remark-lint-no-multiple-toplevel-headings@3?dts' | ||
import remarkLintNoMultipleToplevelHeadings from 'https://esm.sh/remark-lint-no-multiple-toplevel-headings@3' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintNoMultipleToplevelHeadings from 'https://cdn.skypack.dev/remark-lint-no-multiple-toplevel-headings@3?min' | ||
import remarkLintNoMultipleToplevelHeadings from 'https://esm.sh/remark-lint-no-multiple-toplevel-headings@3?bundle' | ||
</script> | ||
@@ -228,3 +228,3 @@ ``` | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -231,0 +231,0 @@ [npm]: https://docs.npmjs.com/cli/install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109
9929