Skip to content

Commit

Permalink
Refactor to clean up type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy authored and wooorm committed Nov 9, 2019
1 parent e702307 commit 757f854
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.5.1",
"typescript": "^3.0.0",
"xo": "^0.25.0"
},
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ declare namespace unified {
/**
* Clone current processor
*
* @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.
* @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.
*/
(): Processor<P>

Expand Down Expand Up @@ -76,7 +77,8 @@ declare namespace unified {
*
* `Parser` can be a normal function in which case it must return a `Node`: the syntax tree representation of the given file.
*
* `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`.
* `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`.
*/
Parser: ParserConstructor | ParserFunction

Expand Down
4 changes: 0 additions & 4 deletions types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"compilerOptions": {
"lib": ["es2015"],
"strict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": ".",
"paths": {
"unified": ["index.d.ts"]
Expand Down
7 changes: 2 additions & 5 deletions types/tslint.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
{
"extends": "dtslint/dtslint.json",
"rules": {
"max-line-length": false,
"no-redundant-jsdoc": false,
"no-unnecessary-generics": false,
"no-void-expression": false,
"only-arrow-functions": false,
"semicolon": false,
"unified-signatures": false,
"whitespace": false,
"no-unnecessary-generics": false,
"strict-export-declare-modifiers": false
"whitespace": false
}
}

0 comments on commit 757f854

Please sign in to comment.