Permalink
Browse files

fix: some typings warnings

  • Loading branch information...
pedronauck committed Dec 2, 2018
1 parent a3910b1 commit 4afb87bda2db8082ff9ddb8a7aa36d73d8224673
Showing with 5 additions and 8 deletions.
  1. +1 −2 packages/load-cfg/src/index.ts
  2. +3 −6 packages/remark-docz/src/index.ts
  3. +1 −0 tslint.json
@@ -52,9 +52,8 @@ export function load<C = any>(
noCache?: boolean,
deep?: boolean
): C {
let file = {}
const filepath = findup.sync(finds(name))
if (filepath) file = loadFile(filepath, noCache)
const file = filepath ? loadFile(filepath, noCache) : {}

// tslint:disable
return defaultConfig
@@ -67,11 +67,8 @@ const mergeNodeWithoutCloseTag = (tree: any, node: any, idx: any) => {
}

// turns `html` nodes into `jsx` nodes
export default () => (tree: any) => {
visit(tree, 'html', visitor)

function visitor(node: any, idx: any): void {
export default () => (tree: any) =>
visit(tree, 'html', (node: any, idx: any): void => {
// check if a node has just open tag
mergeNodeWithoutCloseTag(tree, node, idx)
}
}
})
@@ -1,6 +1,7 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"class-name": false,
"curly": false,
"interface-name": [true, "never-prefix"],
"ordered-imports": false,

0 comments on commit 4afb87b

Please sign in to comment.