remark-lint-maximum-heading-length
Advanced tools
Comparing version 3.1.1 to 3.1.2
export default remarkLintMaximumHeadingLength | ||
export type Root = import('mdast').Root | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = number | ||
declare const remarkLintMaximumHeadingLength: import('unified').Plugin< | ||
| void[] | ||
| [number | 'warn' | 'on' | 'off' | 'error' | undefined] | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule').Label | ||
| import('unified-lint-rule').Severity | ||
), | ||
number | undefined | ||
| number | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule/lib/index.js').Label | ||
| import('unified-lint-rule/lib/index.js').Severity | ||
), | ||
(number | undefined)? | ||
] | ||
| undefined | ||
], | ||
@@ -15,0 +21,0 @@ import('mdast').Root, |
@@ -37,3 +37,3 @@ /** | ||
* @example | ||
* {"name": "not-ok.md", "setting": 40, "label": "input"} | ||
* {"name": "not-ok.md", "config": 40, "label": "input"} | ||
* | ||
@@ -43,3 +43,3 @@ * # Alpha bravo charlie delta echo foxtrot golf hotel | ||
* @example | ||
* {"name": "not-ok.md", "setting": 40, "label": "output"} | ||
* {"name": "not-ok.md", "config": 40, "label": "output"} | ||
* | ||
@@ -51,3 +51,7 @@ * 1:1-1:52: Use headings shorter than `40` | ||
* @typedef {import('mdast').Root} Root | ||
*/ | ||
/** | ||
* @typedef {number} Options | ||
* Options. | ||
*/ | ||
@@ -54,0 +58,0 @@ |
{ | ||
"name": "remark-lint-maximum-heading-length", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "remark-lint rule to warn when headings are too long", | ||
@@ -44,5 +44,3 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
}, | ||
"scripts": {}, | ||
"xo": false, | ||
@@ -49,0 +47,0 @@ "typeCoverage": { |
@@ -57,13 +57,13 @@ <!--This file is generated--> | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import remarkLintMaximumHeadingLength from 'https://cdn.skypack.dev/remark-lint-maximum-heading-length@3?dts' | ||
import remarkLintMaximumHeadingLength from 'https://esm.sh/remark-lint-maximum-heading-length@3' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintMaximumHeadingLength from 'https://cdn.skypack.dev/remark-lint-maximum-heading-length@3?min' | ||
import remarkLintMaximumHeadingLength from 'https://esm.sh/remark-lint-maximum-heading-length@3?bundle' | ||
</script> | ||
@@ -143,6 +143,4 @@ ``` | ||
##### `not-ok.md` | ||
##### `ok.md` | ||
When configured with `40`. | ||
###### In | ||
@@ -152,2 +150,4 @@ | ||
# Alpha bravo charlie delta echo foxtrot golf hotel | ||
# ![Alpha bravo charlie delta echo foxtrot golf hotel](http://example.com/nato.png) | ||
``` | ||
@@ -157,8 +157,8 @@ | ||
```text | ||
1:1-1:52: Use headings shorter than `40` | ||
``` | ||
No messages. | ||
##### `ok.md` | ||
##### `not-ok.md` | ||
When configured with `40`. | ||
###### In | ||
@@ -168,4 +168,2 @@ | ||
# Alpha bravo charlie delta echo foxtrot golf hotel | ||
# ![Alpha bravo charlie delta echo foxtrot golf hotel](http://example.com/nato.png) | ||
``` | ||
@@ -175,3 +173,5 @@ | ||
No messages. | ||
```text | ||
1:1-1:52: Use headings shorter than `40` | ||
``` | ||
@@ -233,3 +233,3 @@ ## Compatibility | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -236,0 +236,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
10023
94