remark-lint-ordered-list-marker-style
Advanced tools
Comparing version 3.1.1 to 3.1.2
export default remarkLintOrderedListMarkerStyle | ||
export type Root = import('mdast').Root | ||
/** | ||
* Style. | ||
*/ | ||
export type Marker = '.' | ')' | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = 'consistent' | Marker | ||
@@ -9,13 +15,11 @@ declare const remarkLintOrderedListMarkerStyle: 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 | ||
], | ||
@@ -22,0 +26,0 @@ import('mdast').Root, |
15
index.js
@@ -51,3 +51,3 @@ /** | ||
* @example | ||
* {"name": "ok.md", "setting": "."} | ||
* {"name": "ok.md", "config": "."} | ||
* | ||
@@ -59,3 +59,3 @@ * 1. Foo | ||
* @example | ||
* {"name": "ok.md", "setting": ")"} | ||
* {"name": "ok.md", "config": ")"} | ||
* | ||
@@ -79,3 +79,3 @@ * 1) Foo | ||
* @example | ||
* {"name": "not-ok.md", "label": "output", "setting": "💩", "positionless": true} | ||
* {"name": "not-ok.md", "label": "output", "config": "💩", "positionless": true} | ||
* | ||
@@ -87,6 +87,11 @@ * 1:1: Incorrect ordered list item marker style `💩`: use either `'.'` or `')'` | ||
* @typedef {import('mdast').Root} Root | ||
* @typedef {'.'|')'} Marker | ||
* @typedef {'consistent'|Marker} Options | ||
*/ | ||
/** | ||
* @typedef {'.' | ')'} Marker | ||
* Style. | ||
* @typedef {'consistent' | Marker} Options | ||
* Options. | ||
*/ | ||
import {lintRule} from 'unified-lint-rule' | ||
@@ -93,0 +98,0 @@ import {visit} from 'unist-util-visit' |
{ | ||
"name": "remark-lint-ordered-list-marker-style", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "remark-lint rule to warn when the markers of ordered lists violate 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": { |
@@ -60,13 +60,13 @@ <!--This file is generated--> | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import remarkLintOrderedListMarkerStyle from 'https://cdn.skypack.dev/remark-lint-ordered-list-marker-style@3?dts' | ||
import remarkLintOrderedListMarkerStyle from 'https://esm.sh/remark-lint-ordered-list-marker-style@3' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintOrderedListMarkerStyle from 'https://cdn.skypack.dev/remark-lint-ordered-list-marker-style@3?min' | ||
import remarkLintOrderedListMarkerStyle from 'https://esm.sh/remark-lint-ordered-list-marker-style@3?bundle' | ||
</script> | ||
@@ -287,3 +287,3 @@ ``` | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -290,0 +290,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
161
12336