Skip to content

Commit 7fdeb6a

Browse files
committed
style(prettier): Use prettier for code formatting
This saves us style issues. Also adds husky and lint-staged for pre-commit testing Refs #709
1 parent 383676a commit 7fdeb6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lib/infer/finders.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ var t = require('babel-types');
1111
* @returns {?Object} ast path, if one is found.
1212
* @private
1313
*/
14-
function findTarget(path /*: Object */) { if (!path) { return path; }
14+
function findTarget(path /*: Object */) {
15+
if (!path) {
16+
return path;
17+
}
1518

1619
if (
1720
t.isExportDefaultDeclaration(path) ||

0 commit comments

Comments
 (0)