Skip to content

Investigate why clang-format mangles sources #270

@43081j

Description

@43081j

Currently we're missing a .clang-format so the format npm script won't be using the Google style config.

That's the first issue. Second issue is that if we try use the Google style (copied from polymer tools repo for example), it produces some real strangeness:

@property() message='Hi';

Notice the lack of spacing around =.

return queryFn(this.renderRoot !, selector);

Again crazy spacing around !.

Can we just not use clang-format against template strings and decorators? and typescript-specific stuff?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions