Skip to content

Commit 757f854

Browse files
ChristianMurphywooorm
authored andcommitted
Refactor to clean up type tests
1 parent e702307 commit 757f854

4 files changed

Lines changed: 6 additions & 12 deletions

File tree

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"remark-preset-wooorm": "^6.0.0",
4848
"tape": "^4.0.0",
4949
"tinyify": "^2.5.1",
50-
"typescript": "^3.0.0",
5150
"xo": "^0.25.0"
5251
},
5352
"scripts": {

types/index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ declare namespace unified {
1414
/**
1515
* Clone current processor
1616
*
17-
* @returns New unfrozen processor which is configured to function the same as its ancestor. But when the descendant processor is configured in the future it does not affect the ancestral processor.
17+
* @returns New unfrozen processor which is configured to function the same as its ancestor.
18+
* But when the descendant processor is configured in the future it does not affect the ancestral processor.
1819
*/
1920
(): Processor<P>
2021

@@ -76,7 +77,8 @@ declare namespace unified {
7677
*
7778
* `Parser` can be a normal function in which case it must return a `Node`: the syntax tree representation of the given file.
7879
*
79-
* `Parser` can also be a constructor function (a function with keys in its `prototype`) in which case it’s invoked with `new`. Instances must have a parse method which is invoked without arguments and must return a `Node`.
80+
* `Parser` can also be a constructor function (a function with keys in its `prototype`) in which case it’s invoked with `new`.
81+
* Instances must have a parse method which is invoked without arguments and must return a `Node`.
8082
*/
8183
Parser: ParserConstructor | ParserFunction
8284

types/tsconfig.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
"compilerOptions": {
33
"lib": ["es2015"],
44
"strict": true,
5-
"noImplicitAny": true,
6-
"noImplicitThis": true,
7-
"strictNullChecks": true,
8-
"strictFunctionTypes": true,
95
"baseUrl": ".",
106
"paths": {
117
"unified": ["index.d.ts"]

types/tslint.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"extends": "dtslint/dtslint.json",
33
"rules": {
4-
"max-line-length": false,
5-
"no-redundant-jsdoc": false,
4+
"no-unnecessary-generics": false,
65
"no-void-expression": false,
76
"only-arrow-functions": false,
87
"semicolon": false,
98
"unified-signatures": false,
10-
"whitespace": false,
11-
"no-unnecessary-generics": false,
12-
"strict-export-declare-modifiers": false
9+
"whitespace": false
1310
}
1411
}

0 commit comments

Comments
 (0)