Skip to content

Commit 43afc88

Browse files
adds tslint.json
1 parent 10891a0 commit 43afc88

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

types/index.d.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// TypeScript Version: 3.5
22

3-
import { Node } from 'unist';
4-
import { Test } from 'unist-util-is';
3+
import {Node} from 'unist'
4+
import {Test} from 'unist-util-is'
55

66
declare namespace remove {
77
interface RemoveOptions {
88
/**
99
* Whether to drop parent nodes if they had children, but all their children were filtered out test
1010
*/
11-
cascade?: boolean;
11+
cascade?: boolean
1212
}
1313
}
1414

@@ -20,14 +20,11 @@ declare namespace remove {
2020
* @param options Whether to drop parent nodes if they had children, but all their children were filtered out
2121
* @param test is-compatible test (such as a type)
2222
*/
23-
declare function remove(
24-
tree: Node,
25-
test?: Test<Node>
26-
): Node;
23+
declare function remove(tree: Node, test?: Test<Node>): Node
2724
declare function remove(
2825
tree: Node,
2926
options: remove.RemoveOptions = {cascade: true},
3027
test?: Test<Node>
31-
): Node;
28+
): Node
3229

33-
export = remove;
30+
export = remove

types/tslint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "dtslint/dtslint.json",
3+
"rules": {
4+
"no-redundant-jsdoc": false,
5+
"no-redundant-jsdoc-2": true,
6+
"semicolon": false,
7+
"whitespace": false
8+
}
9+
}

0 commit comments

Comments
 (0)