remark-lint-ordered-list-marker-value
Advanced tools
Comparing version 3.1.1 to 3.1.2
export default remarkLintOrderedListMarkerValue | ||
export type Root = import('mdast').Root | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = 'single' | 'one' | 'ordered' | ||
@@ -8,13 +11,11 @@ declare const remarkLintOrderedListMarkerValue: import('unified').Plugin< | ||
| Options | ||
| 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 | ||
), | ||
(Options | undefined)? | ||
] | ||
| undefined | ||
] | ||
| [ | ||
( | ||
| boolean | ||
| import('unified-lint-rule').Label | ||
| import('unified-lint-rule').Severity | ||
), | ||
Options | undefined | ||
], | ||
@@ -21,0 +22,0 @@ import('mdast').Root, |
26
index.js
@@ -63,3 +63,3 @@ /** | ||
* @example | ||
* {"name": "ok.md", "setting": "one"} | ||
* {"name": "ok.md", "config": "one"} | ||
* | ||
@@ -77,3 +77,3 @@ * 1. Foo | ||
* @example | ||
* {"name": "ok.md", "setting": "single"} | ||
* {"name": "ok.md", "config": "single"} | ||
* | ||
@@ -97,3 +97,3 @@ * 1. Foo | ||
* @example | ||
* {"name": "ok.md", "setting": "ordered"} | ||
* {"name": "ok.md", "config": "ordered"} | ||
* | ||
@@ -117,3 +117,3 @@ * 1. Foo | ||
* @example | ||
* {"name": "not-ok.md", "setting": "one", "label": "input"} | ||
* {"name": "not-ok.md", "config": "one", "label": "input"} | ||
* | ||
@@ -124,3 +124,3 @@ * 1. Foo | ||
* @example | ||
* {"name": "not-ok.md", "setting": "one", "label": "output"} | ||
* {"name": "not-ok.md", "config": "one", "label": "output"} | ||
* | ||
@@ -130,3 +130,3 @@ * 2:1-2:8: Marker should be `1`, was `2` | ||
* @example | ||
* {"name": "also-not-ok.md", "setting": "one", "label": "input"} | ||
* {"name": "also-not-ok.md", "config": "one", "label": "input"} | ||
* | ||
@@ -137,3 +137,3 @@ * 2. Foo | ||
* @example | ||
* {"name": "also-not-ok.md", "setting": "one", "label": "output"} | ||
* {"name": "also-not-ok.md", "config": "one", "label": "output"} | ||
* | ||
@@ -143,3 +143,3 @@ * 1:1-1:8: Marker should be `1`, was `2` | ||
* @example | ||
* {"name": "not-ok.md", "setting": "ordered", "label": "input"} | ||
* {"name": "not-ok.md", "config": "ordered", "label": "input"} | ||
* | ||
@@ -150,3 +150,3 @@ * 1. Foo | ||
* @example | ||
* {"name": "not-ok.md", "setting": "ordered", "label": "output"} | ||
* {"name": "not-ok.md", "config": "ordered", "label": "output"} | ||
* | ||
@@ -156,3 +156,3 @@ * 2:1-2:8: Marker should be `2`, was `1` | ||
* @example | ||
* {"name": "not-ok.md", "setting": "💩", "label": "output", "positionless": true} | ||
* {"name": "not-ok.md", "config": "💩", "label": "output", "positionless": true} | ||
* | ||
@@ -164,5 +164,9 @@ * 1:1: Incorrect ordered list item marker value `💩`: use either `'ordered'`, `'one'`, or `'single'` | ||
* @typedef {import('mdast').Root} Root | ||
* @typedef {'single'|'one'|'ordered'} Options | ||
*/ | ||
/** | ||
* @typedef {'single' | 'one' | 'ordered'} Options | ||
* Options. | ||
*/ | ||
import {lintRule} from 'unified-lint-rule' | ||
@@ -169,0 +173,0 @@ import {visit} from 'unist-util-visit' |
{ | ||
"name": "remark-lint-ordered-list-marker-value", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "remark-lint rule to warn when the marker value of ordered lists violates a given style", | ||
@@ -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 remarkLintOrderedListMarkerValue from 'https://cdn.skypack.dev/remark-lint-ordered-list-marker-value@3?dts' | ||
import remarkLintOrderedListMarkerValue from 'https://esm.sh/remark-lint-ordered-list-marker-value@3' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintOrderedListMarkerValue from 'https://cdn.skypack.dev/remark-lint-ordered-list-marker-value@3?min' | ||
import remarkLintOrderedListMarkerValue from 'https://esm.sh/remark-lint-ordered-list-marker-value@3?bundle' | ||
</script> | ||
@@ -378,3 +378,3 @@ ``` | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -381,0 +381,0 @@ [npm]: https://docs.npmjs.com/cli/install |
236
15127