Skip to content

Clean up #493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Apr 15, 2016
Merged

Clean up #493

merged 22 commits into from
Apr 15, 2016

Conversation

cloudlena
Copy link
Contributor

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    It introduces a couple of improvements that I would do.
  • What is the current behavior? (You can also link to an open issue here)
    There are some shortcomings in the code- and commenting structure.
  • What is the new behavior (if this is a feature change)?
    Improved code structure and unified comments.
  • Other information:
    @gdi2290, please give me your feedback about which changes you like and which you don't.

@samvloeberghs
Copy link
Contributor

@mastertinner, one note:
trailing comma's are ( in some cases ) actually a good thing. It's better for git diffs. And they get stripped out automatically by the typescript transpiler. Better would be to put the missing trailing comma's .

@cloudlena
Copy link
Contributor Author

@samvloeberghs, thanks for your feedback! I think that's a personal choice. I personally prefer no trailing commas for better legibility but I'm also fine with having them everywhere. What's crucial to me is that we are consistent about this and enforce it using the tslint rule.

@samvloeberghs
Copy link
Contributor

The community should decide here.. It's not really about personal choice, more about best practise + they are valid ES5, 6, ...

More info here:
http://eslint.org/docs/rules/comma-dangle
http://www.2ality.com/2013/07/trailing-commas.html

@alvipeo
Copy link

alvipeo commented Apr 4, 2016

No trailing commas please. Let's not make things ugly. I mean where we'd end up going this route..

@samvloeberghs
Copy link
Contributor

@alvipeo please provide more arguments than it being ugly please, because that's personal feeling ;)
I like them.

@alvipeo
Copy link

alvipeo commented Apr 4, 2016

Sure it's personal. As I said code looks ugly.

@alvipeo
Copy link

alvipeo commented Apr 4, 2016

What actually would be cool is there'd be some kind of wizard app asking questions on what would you like to include in the repo and then create that repo accordingly. One of the question would be "Do you want to have an ugly trailing commas in your project?" :))

@samvloeberghs
Copy link
Contributor

go ahead, there's yeoman for that

@@ -17,9 +17,9 @@
[Services](https://gist.github.com/gdi2290/634101fec1671ee12b3e#_follow_@AngularClass_on_twitter),
[Tests](https://angular.io/docs/js/latest/api/test/), [E2E](https://angular.github.io/protractor/#/faq#what-s-the-difference-between-karma-and-protractor-when-do-i-use-which-)), [Karma](https://karma-runner.github.io/), [Protractor](https://angular.github.io/protractor/), [Jasmine](https://github.com/jasmine/jasmine), [Istanbul](https://github.com/gotwarlost/istanbul), [TypeScript](http://www.typescriptlang.org/), [Typings](https://github.com/typings/typings), [TsLint](http://palantir.github.io/tslint/), [Codelyzer](https://github.com/mgechev/codelyzer), [Hot Module Replacement](https://webpack.github.io/docs/hot-module-replacement-with-webpack.html), and [Webpack](http://webpack.github.io/) by [AngularClass](https://angularclass.com).

> If you're looking for Angular 1.x please use [NG6-starter](https://github.com/angularclass/NG6-starter)
> If you're looking to learn about Webpack and ES6 Build Tools check out [ES6-build-tools](https://github.com/AngularClass/ES6-build-tools)
> If you're looking to learn TypeScript see [TypeStrong/learn-typescript](https://github.com/TypeStrong/learn-typescript)
Copy link
Owner

Choose a reason for hiding this comment

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

the two spaces at the end is a markdown feature for <br>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gdi2290 my text editor (and I think many others' removes trailing whitespaces...) That's why I've added blank lines between the points. Does that remedy the problem?

Copy link
Owner

Choose a reason for hiding this comment

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

it doesn't but I'll fix it in another commit

@PatrickJS
Copy link
Owner

@mastertinner can you rebase so I can merge?

# Conflicts:
#	README.md
@cloudlena
Copy link
Contributor Author

Done

@PatrickJS
Copy link
Owner

@mastertinner thanks!

@cloudlena
Copy link
Contributor Author

@gdi2290, can you please merge or let me know what you would like me to change before merging?

@PatrickJS PatrickJS merged commit 1205e1a into PatrickJS:master Apr 15, 2016
awcodify pushed a commit to awcodify/d3-angular-4 that referenced this pull request Aug 28, 2017
* remove nitrous config

* update deps

* downgrade rxjs (as required by angular beta.13

* remove unnecessary comment

* use const instead of var

* remove trailing commas

* unify multiline comments

* jsdoc style author tag

* update deps

* use clearer tslint structure

* remove nitrous

* use single quotes

* add blank lines

* own comment for tslint

* update deps

* add nitrous back

* update deps

* downgrade rxjs as required by angular beta.14

* remove engineStrict because it's deprecated https://docs.npmjs.com/files/package.json#enginestrict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants