Skip to content

test: cleanup type tests #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"bugs": "https://github.com/syntax-tree/unist-util-is/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"Christian Murphy <christian.murphy.42@gmail.com>"
],
"files": [
"index.js",
Expand All @@ -28,15 +29,15 @@
"types": "index.d.ts",
"dependencies": {},
"devDependencies": {
"@types/mdast": "^3.0.3",
"browserify": "^16.0.0",
"dtslint": "^0.9.0",
"dtslint": "^1.0.2",
"nyc": "^14.0.0",
"prettier": "^1.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"typescript": "^3.5.3",
"unified": "^8.3.2",
"xo": "^0.24.0"
},
Expand Down
4 changes: 0 additions & 4 deletions 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": {
"unist-util-is": ["index.d.ts"],
Expand Down
10 changes: 1 addition & 9 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
{
"extends": "dtslint/dtslint.json",
"rules": {
"callable-types": false,
"max-line-length": false,
"no-redundant-jsdoc": false,
"no-void-expression": false,
"only-arrow-functions": false,
"semicolon": false,
"unified-signatures": false,
"whitespace": false,
"interface-over-type-literal": false,
"no-unnecessary-generics": false
"whitespace": false
}
}
7 changes: 1 addition & 6 deletions unist-util-is-test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import {Node, Parent} from 'unist'
import {Heading} from 'mdast'
import unified = require('unified')
import is = require('unist-util-is')
import convert = require('unist-util-is/convert')

/*=== setup ===*/
interface Heading extends Parent {
type: 'heading'
depth: number
children: Node[]
}

interface Element extends Parent {
type: 'element'
tagName: string
Expand Down