Skip to content

Commit 08a24f8

Browse files
ChristianMurphywooorm
authored andcommitted
Refactor to cleanup type tests
Closes GH-10. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent c2afbb5 commit 08a24f8

File tree

4 files changed

+6
-22
lines changed

4 files changed

+6
-22
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"bugs": "https://github.com/syntax-tree/unist-util-is/issues",
1818
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
1919
"contributors": [
20-
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
20+
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
21+
"Christian Murphy <christian.murphy.42@gmail.com>"
2122
],
2223
"files": [
2324
"index.js",
@@ -28,15 +29,15 @@
2829
"types": "index.d.ts",
2930
"dependencies": {},
3031
"devDependencies": {
32+
"@types/mdast": "^3.0.3",
3133
"browserify": "^16.0.0",
32-
"dtslint": "^0.9.0",
34+
"dtslint": "^1.0.2",
3335
"nyc": "^14.0.0",
3436
"prettier": "^1.0.0",
3537
"remark-cli": "^7.0.0",
3638
"remark-preset-wooorm": "^6.0.0",
3739
"tape": "^4.0.0",
3840
"tinyify": "^2.0.0",
39-
"typescript": "^3.5.3",
4041
"unified": "^8.3.2",
4142
"xo": "^0.24.0"
4243
},

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
"unist-util-is": ["index.d.ts"],

tslint.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
{
22
"extends": "dtslint/dtslint.json",
33
"rules": {
4-
"callable-types": false,
5-
"max-line-length": false,
6-
"no-redundant-jsdoc": false,
7-
"no-void-expression": false,
8-
"only-arrow-functions": false,
94
"semicolon": false,
10-
"unified-signatures": false,
11-
"whitespace": false,
12-
"interface-over-type-literal": false,
13-
"no-unnecessary-generics": false
5+
"whitespace": false
146
}
157
}

unist-util-is-test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import {Node, Parent} from 'unist'
2+
import {Heading} from 'mdast'
23
import unified = require('unified')
34
import is = require('unist-util-is')
45
import convert = require('unist-util-is/convert')
56

67
/*=== setup ===*/
7-
interface Heading extends Parent {
8-
type: 'heading'
9-
depth: number
10-
children: Node[]
11-
}
12-
138
interface Element extends Parent {
149
type: 'element'
1510
tagName: string

0 commit comments

Comments
 (0)