-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d62b2bd
commit b647397
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import {type TransformCallback} from "unified" | ||
import {type Label, type Severity} from "unified-lint-rule" | ||
import {type Node} from "unist" | ||
import {type VFile} from "vfile" | ||
|
||
export interface RemarkLintRule< | ||
Tree extends Node = Node, | ||
Option = unknown, | ||
> { | ||
( | ||
config?: | ||
string[] | | ||
Label | | ||
Severity | | ||
[ | ||
level: Label | Severity, | ||
option?: Option | undefined, | ||
] | | ||
undefined | ||
): | ||
( | ||
( | ||
tree: Tree, | ||
file: VFile, | ||
next: TransformCallback<Tree>, | ||
) => undefined | ||
) | | ||
undefined | ||
|
||
readonly name: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "@onlyoffice/remark-lint", | ||
"type": "module", | ||
"private": true, | ||
"main": "lib/main.ts", | ||
"scripts": { | ||
"clean": "rimraf node_modules", | ||
"test:types": "tsc", | ||
"test": "pnpm test:types" | ||
}, | ||
"dependencies": { | ||
"@types/unist": "3.0.3", | ||
"unified": "11.0.5", | ||
"unified-lint-rule": "3.0.0", | ||
"vfile": "6.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../../tsconfig.base.json", | ||
"include": ["lib"] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.