Skip to content
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

Spaces in import statements #29

Closed
juergenzimmermann opened this issue May 14, 2016 · 1 comment
Closed

Spaces in import statements #29

juergenzimmermann opened this issue May 14, 2016 · 1 comment

Comments

@juergenzimmermann
Copy link

clang-format wants import statements to look like this one:

import {ObjectID} from 'mongodb';

However, the Angular style guide https://angular.io/docs/ts/latest/guide/style-guide.html recommends to use spaces:

import { ObjectID } from 'mongodb';
@mprobst
Copy link
Contributor

mprobst commented May 25, 2016

I think that's not a recommendation in the Angular style guide - the Angular style guide is not about formatting, more about how to structure your code.

Angular 2 does actually use clang-format, and if you check its source, you'll see it doesn't use whitespace within the import curlies.

@mprobst mprobst closed this as completed May 25, 2016
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

No branches or pull requests

2 participants