Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Jan 14, 2017
1 parent aea4fb8 commit 3fee27e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/lib/file-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ function exec (fn: Function, ...args: any[]): Promise<any> {
resolve(res)
}))
})
}
}
1 change: 0 additions & 1 deletion src/lib/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ export function generate (filenames: string[], options: ts.CompilerOptions): Pro
})
)
}

2 changes: 1 addition & 1 deletion src/lib/language-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ function normalize (fileName: string): string {
return fileName + '.ts'
}
return fileName
}
}
2 changes: 1 addition & 1 deletion src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export function logError (filePath: string, messages: string[]): void {
...messages.map(m => ' ' + 'Error: '.red + m)
]
console.error(errors.join('\n'))
}
}
2 changes: 1 addition & 1 deletion src/lib/ts-file-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,4 @@ function getRawFileName (fileName: string): string {
return fileName.slice(0, -3)
}
return fileName
}
}
2 changes: 1 addition & 1 deletion src/lib/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ function onlyVue (fn: (fileName: string) => void): (fileName: string) => void {
if (!/\.vue$/.test(fileName)) return
fn(fileName)
}
}
}
2 changes: 1 addition & 1 deletion src/types/vue-template-compiler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ declare module 'vue-template-compiler' {

const compiler: TemplateCompiler
export = compiler
}
}
2 changes: 1 addition & 1 deletion test/specs/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ describe('generate', () => {

function normalize (str: string): string {
return str.trim().replace(/\r\n/g, '\n')
}
}

0 comments on commit 3fee27e

Please sign in to comment.