remark-lint-fenced-code-marker
Advanced tools
Comparing version 3.1.1 to 3.1.2
export default remarkLintFencedCodeMarker | ||
export type Root = import('mdast').Root | ||
/** | ||
* Styles. | ||
*/ | ||
export type Marker = '~' | '`' | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = 'consistent' | Marker | ||
@@ -9,13 +15,11 @@ declare const remarkLintFencedCodeMarker: 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
@@ -44,3 +44,3 @@ /** | ||
* @example | ||
* {"name": "ok.md", "setting": "`"} | ||
* {"name": "ok.md", "config": "`"} | ||
* | ||
@@ -56,3 +56,3 @@ * ```alpha | ||
* @example | ||
* {"name": "ok.md", "setting": "~"} | ||
* {"name": "ok.md", "config": "~"} | ||
* | ||
@@ -100,3 +100,3 @@ * ~~~alpha | ||
* @example | ||
* {"name": "not-ok-incorrect.md", "setting": "💩", "label": "output", "positionless": true} | ||
* {"name": "not-ok-incorrect.md", "config": "💩", "label": "output", "positionless": true} | ||
* | ||
@@ -108,6 +108,11 @@ * 1:1: Incorrect fenced code marker `💩`: use either `'consistent'`, `` '`' ``, or `'~'` | ||
* @typedef {import('mdast').Root} Root | ||
* @typedef {'~'|'`'} Marker | ||
* @typedef {'consistent'|Marker} Options | ||
*/ | ||
/** | ||
* @typedef {'~' | '`'} Marker | ||
* Styles. | ||
* @typedef {'consistent' | Marker} Options | ||
* Options. | ||
*/ | ||
import {lintRule} from 'unified-lint-rule' | ||
@@ -114,0 +119,0 @@ import {visit} from 'unist-util-visit' |
{ | ||
"name": "remark-lint-fenced-code-marker", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "remark-lint rule to warn when fenced code markers violate the given style", | ||
@@ -44,5 +44,3 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
}, | ||
"scripts": {}, | ||
"xo": false, | ||
@@ -49,0 +47,0 @@ "typeCoverage": { |
@@ -59,13 +59,13 @@ <!--This file is generated--> | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import remarkLintFencedCodeMarker from 'https://cdn.skypack.dev/remark-lint-fenced-code-marker@3?dts' | ||
import remarkLintFencedCodeMarker from 'https://esm.sh/remark-lint-fenced-code-marker@3' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintFencedCodeMarker from 'https://cdn.skypack.dev/remark-lint-fenced-code-marker@3?min' | ||
import remarkLintFencedCodeMarker from 'https://esm.sh/remark-lint-fenced-code-marker@3?bundle' | ||
</script> | ||
@@ -311,3 +311,3 @@ ``` | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -314,0 +314,0 @@ [npm]: https://docs.npmjs.com/cli/install |
180
12411