Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

[WIP] docs(style-guide): add style-guide - v.4 #1180

Merged
merged 1 commit into from
Apr 28, 2016

Conversation

wardbell
Copy link
Contributor

Work in progress DO NOT MERGE
continuation of PR #1170

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

1 similar comment
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@wardbell
Copy link
Contributor Author

googlebot: John agrees to this commit

bootstrap(AppComponent, []);

const HEROES: Hero[] = [
{id: 1, name: 'Bombasto'},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 char indentation looks weird. Is there some rule for this? Do you use some auto-formatting tool in TS?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. There will be a linter on these that @mgechev is adding. It will catch stuff like this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Foxandxss Can you fix this kitchen-sink to 2 char spacing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I will push a new commit to this branch in a bit.

@wardbell wardbell force-pushed the docs-style-guide-4 branch from ceda1c9 to d2f99c8 Compare April 26, 2016 06:06
export const HEROES: Hero[] = [
{id: 1, name: 'Bombasto'},
{id: 2, name: 'Tornado'},
{id: 3, name: 'Magneta'},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please dont worry about these for now. @Foxandxss will catch these once we have @mgechev 's linter in there. Or he can just use an .editorconfig to make sure they are all 2 chars

@Foxandxss
Copy link
Member

We have a duplicated 05-15. Lets promote Don't Prefix Output Properties to 05-16 and Put Presentation Logic in the Component Class to 05-17

@Foxandxss
Copy link
Member

We have a 08-03 after the 05-XX and before the 07-XX so I suggest renaming it to 06-XX (01 I guess).

@wardbell wardbell force-pushed the docs-style-guide-4 branch from c922a11 to d5e909b Compare April 28, 2016 07:53
@wardbell wardbell merged commit d5e909b into angular:master Apr 28, 2016
@wardbell wardbell deleted the docs-style-guide-4 branch April 28, 2016 07:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants