remark-lint-definition-case
Advanced tools
Comparing version 4.0.0 to 4.0.1
export default remarkLintDefinitionCase; | ||
export type Root = import('mdast').Root; | ||
declare const remarkLintDefinitionCase: { | ||
(config?: unknown): ((tree: import("mdast").Root, file: import("vfile").VFile, next: import("unified").TransformCallback<import("mdast").Root>) => undefined) | undefined; | ||
readonly name: string; | ||
}; | ||
declare const remarkLintDefinitionCase: import("unified-lint-rule").Plugin<Root, unknown>; | ||
import type { Root } from 'mdast'; | ||
//# sourceMappingURL=index.d.ts.map |
10
index.js
@@ -38,3 +38,3 @@ /** | ||
* @author Titus Wormer | ||
* @copyright 2015 Titus Wormer | ||
* @copyright Titus Wormer | ||
* @license MIT | ||
@@ -45,3 +45,3 @@ * | ||
* | ||
* [mercury]: http://example.com "Mercury" | ||
* [mercury]: https://example.com "Mercury" | ||
* | ||
@@ -51,7 +51,7 @@ * @example | ||
* | ||
* [Mercury]: http://example.com "Mercury" | ||
* [Mercury]: https://example.com "Mercury" | ||
* @example | ||
* {"label": "output", "name": "not-ok.md"} | ||
* | ||
* 1:1-1:40: Unexpected uppercase characters in definition label, expected lowercase | ||
* 1:1-1:41: Unexpected uppercase characters in definition label, expected lowercase | ||
* | ||
@@ -71,3 +71,3 @@ * @example | ||
/** | ||
* @typedef {import('mdast').Root} Root | ||
* @import {Root} from 'mdast' | ||
*/ | ||
@@ -74,0 +74,0 @@ |
{ | ||
"name": "remark-lint-definition-case", | ||
"version": "4.0.0", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"bugs": "https://github.com/remarkjs/remark-lint/issues", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com>" | ||
], | ||
"dependencies": { | ||
"@types/mdast": "^4.0.0", | ||
"mdast-util-phrasing": "^4.0.0", | ||
"unified-lint-rule": "^3.0.0", | ||
"unist-util-visit-parents": "^6.0.0" | ||
}, | ||
"description": "remark-lint rule to warn when definition labels are not lowercase", | ||
"license": "MIT", | ||
"exports": "./index.js", | ||
"files": [ | ||
"index.d.ts", | ||
"index.d.ts.map", | ||
"index.js" | ||
], | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/unified" | ||
}, | ||
"keywords": [ | ||
@@ -15,33 +33,13 @@ "case", | ||
], | ||
"license": "MIT", | ||
"name": "remark-lint-definition-case", | ||
"repository": "https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-definition-case", | ||
"bugs": "https://github.com/remarkjs/remark-lint/issues", | ||
"funding": { | ||
"type": "opencollective", | ||
"url": "https://opencollective.com/unified" | ||
}, | ||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", | ||
"contributors": [ | ||
"Titus Wormer <tituswormer@gmail.com>" | ||
], | ||
"scripts": {}, | ||
"sideEffects": false, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"files": [ | ||
"index.d.ts", | ||
"index.d.ts.map", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"@types/mdast": "^4.0.0", | ||
"mdast-util-phrasing": "^4.0.0", | ||
"unified-lint-rule": "^3.0.0", | ||
"unist-util-visit-parents": "^6.0.0" | ||
}, | ||
"scripts": {}, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"ignoreCatch": true, | ||
"strict": true | ||
}, | ||
"type": "module", | ||
"version": "4.0.1", | ||
"xo": { | ||
@@ -48,0 +46,0 @@ "prettier": true, |
@@ -149,3 +149,3 @@ <!--This file is generated--> | ||
```markdown | ||
[mercury]: http://example.com "Mercury" | ||
[mercury]: https://example.com "Mercury" | ||
``` | ||
@@ -162,3 +162,3 @@ | ||
```markdown | ||
[Mercury]: http://example.com "Mercury" | ||
[Mercury]: https://example.com "Mercury" | ||
``` | ||
@@ -169,3 +169,3 @@ | ||
```text | ||
1:1-1:40: Unexpected uppercase characters in definition label, expected lowercase | ||
1:1-1:41: Unexpected uppercase characters in definition label, expected lowercase | ||
``` | ||
@@ -172,0 +172,0 @@ |
Sorry, the diff of this file is not supported yet
11101
108