Skip to content

problems formatting fat arrow functions #7

@IgorMinar

Description

@IgorMinar

clang-format@1.0.12 insists that this is the right way to format the following code:

module.exports = function makeNodeTree(destinationPath) {

  var traceurCompatibleTsModulesTree = replace(modulesTree, {
    replaceWithPath: (path, content) => {
      return content;
}
});
}
;

removing the fat arrow section or the return statement from the fat arrow block makes things work fine again.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions