remark-lint-list-item-indent
Advanced tools
Comparing version 3.1.1 to 3.1.2
export default remarkLintListItemIndent | ||
export type Root = import('mdast').Root | ||
/** | ||
* Options. | ||
*/ | ||
export type Options = 'tab-size' | 'space' | 'mixed' | ||
@@ -8,13 +11,11 @@ declare const remarkLintListItemIndent: 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, |
24
index.js
@@ -82,3 +82,3 @@ /** | ||
* @example | ||
* {"name": "ok.md", "setting": "mixed"} | ||
* {"name": "ok.md", "config": "mixed"} | ||
* | ||
@@ -100,3 +100,3 @@ * *·List item. | ||
* @example | ||
* {"name": "ok.md", "setting": "space"} | ||
* {"name": "ok.md", "config": "space"} | ||
* | ||
@@ -118,3 +118,3 @@ * *·List item. | ||
* @example | ||
* {"name": "not-ok.md", "setting": "space", "label": "input"} | ||
* {"name": "not-ok.md", "config": "space", "label": "input"} | ||
* | ||
@@ -125,3 +125,3 @@ * *···List | ||
* @example | ||
* {"name": "not-ok.md", "setting": "space", "label": "output"} | ||
* {"name": "not-ok.md", "config": "space", "label": "output"} | ||
* | ||
@@ -131,3 +131,3 @@ * 1:5: Incorrect list-item indent: remove 2 spaces | ||
* @example | ||
* {"name": "not-ok.md", "setting": "tab-size", "label": "input"} | ||
* {"name": "not-ok.md", "config": "tab-size", "label": "input"} | ||
* | ||
@@ -138,3 +138,3 @@ * *·List | ||
* @example | ||
* {"name": "not-ok.md", "setting": "tab-size", "label": "output"} | ||
* {"name": "not-ok.md", "config": "tab-size", "label": "output"} | ||
* | ||
@@ -144,3 +144,3 @@ * 1:3: Incorrect list-item indent: add 2 spaces | ||
* @example | ||
* {"name": "not-ok.md", "setting": "mixed", "label": "input"} | ||
* {"name": "not-ok.md", "config": "mixed", "label": "input"} | ||
* | ||
@@ -150,3 +150,3 @@ * *···List item. | ||
* @example | ||
* {"name": "not-ok.md", "setting": "mixed", "label": "output"} | ||
* {"name": "not-ok.md", "config": "mixed", "label": "output"} | ||
* | ||
@@ -156,3 +156,3 @@ * 1:5: Incorrect list-item indent: remove 2 spaces | ||
* @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 list-item indent style `💩`: use either `'tab-size'`, `'space'`, or `'mixed'` | ||
* @typedef {import('mdast').Root} Root | ||
* @typedef {'tab-size'|'space'|'mixed'} Options | ||
*/ | ||
/** | ||
* @typedef {'tab-size' | 'space' | 'mixed'} Options | ||
* Options. | ||
*/ | ||
import {lintRule} from 'unified-lint-rule' | ||
@@ -169,0 +173,0 @@ import plural from 'pluralize' |
{ | ||
"name": "remark-lint-list-item-indent", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "remark-lint rule to warn when the spacing between a list item’s bullet and its content violates a given style", | ||
@@ -46,5 +46,3 @@ "license": "MIT", | ||
}, | ||
"scripts": { | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage" | ||
}, | ||
"scripts": {}, | ||
"xo": false, | ||
@@ -51,0 +49,0 @@ "typeCoverage": { |
@@ -61,13 +61,13 @@ <!--This file is generated--> | ||
In Deno with [Skypack][]: | ||
In Deno with [`esm.sh`][esmsh]: | ||
```js | ||
import remarkLintListItemIndent from 'https://cdn.skypack.dev/remark-lint-list-item-indent@3?dts' | ||
import remarkLintListItemIndent from 'https://esm.sh/remark-lint-list-item-indent@3' | ||
``` | ||
In browsers with [Skypack][]: | ||
In browsers with [`esm.sh`][esmsh]: | ||
```html | ||
<script type="module"> | ||
import remarkLintListItemIndent from 'https://cdn.skypack.dev/remark-lint-list-item-indent@3?min' | ||
import remarkLintListItemIndent from 'https://esm.sh/remark-lint-list-item-indent@3?bundle' | ||
</script> | ||
@@ -383,3 +383,3 @@ ``` | ||
[skypack]: https://www.skypack.dev | ||
[esmsh]: https://esm.sh | ||
@@ -386,0 +386,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
235
16861