Re: [DISCUSS] Coding guidelines for the UI

2020-03-07 Thread Philipp Zehnder
Hi all,

thanks to the UI update of Dominik, we are now using the angular CLI. This 
eases some task during development. We now can use the “ng g” commands.

For example to create a new component in a module, navigate to the folder of 
this module and execute the following command:

ng g component 

This will automatically create all files and register it in the module. 
To store it in a particular directory you can execute: 

ng g component /


I also noticed that in the UI we use " and '. I would suggest that we just use 
single quotation marks from now on.
[1] contains a description, how to configure WebStorm accordingly.

Philipp

[1] 
https://stackoverflow.com/questions/35918707/how-to-make-webstorm-reformatting-source-code-to-change-double-quotes-to-singl
 


> On 6. Mar 2020, at 14:01, Johannes Tex  > wrote:
> 
> Hi Philipp,
> 
> today I activated tslint in my IDE, it is really helpful! Thanks!
> 
> 
> Johannes
> 
> On 2020/03/05 22:00:19, Philipp Zehnder  > wrote: 
>> Hi all,
>> 
>> during the development of UI components I realized that we use many 
>> different code styles.
>> 
>> The project contains a tslint.json file, and my IDE shows errors if there 
>> are any style violations.
>> My suggestion would be that everybody activates tslint to ensure we all use 
>> the same formatting.
>> 
>> For me this makes the work much easier, because I am often not sure what the 
>> cleanest way is in Typescript.
>> I do not prefer any particular style as long as it is consistent, so I would 
>> suggest that the tslint.json file is adjusted if someone disagrees with the 
>> current formatting.
>> What do you think about that? Is there a better alternative to tslint or has 
>> anyone had a bad experience?
>> 
>> Philipp




Re: [DISCUSS] Coding guidelines for the UI

2020-03-06 Thread Johannes Tex
Hi Philipp,

today I activated tslint in my IDE, it is really helpful! Thanks!


Johannes

On 2020/03/05 22:00:19, Philipp Zehnder  wrote: 
> Hi all,
> 
> during the development of UI components I realized that we use many different 
> code styles.
>  
> The project contains a tslint.json file, and my IDE shows errors if there are 
> any style violations.
> My suggestion would be that everybody activates tslint to ensure we all use 
> the same formatting.
> 
> For me this makes the work much easier, because I am often not sure what the 
> cleanest way is in Typescript.
> I do not prefer any particular style as long as it is consistent, so I would 
> suggest that the tslint.json file is adjusted if someone disagrees with the 
> current formatting.
> What do you think about that? Is there a better alternative to tslint or has 
> anyone had a bad experience?
> 
> Philipp


[DISCUSS] Coding guidelines for the UI

2020-03-05 Thread Philipp Zehnder
Hi all,

during the development of UI components I realized that we use many different 
code styles.
 
The project contains a tslint.json file, and my IDE shows errors if there are 
any style violations.
My suggestion would be that everybody activates tslint to ensure we all use the 
same formatting.

For me this makes the work much easier, because I am often not sure what the 
cleanest way is in Typescript.
I do not prefer any particular style as long as it is consistent, so I would 
suggest that the tslint.json file is adjusted if someone disagrees with the 
current formatting.
What do you think about that? Is there a better alternative to tslint or has 
anyone had a bad experience?

Philipp