Wednesday, 13 November 2019

How to enforce developers to use square over than curly brackets?

I want to enforce developers in my application to use [] instead of in element attributes.

for example this code should cause an error (in the build/serve/lint time ):

<mycomponent id=""> 

the corrent code is

<mycomponent [id]="i">

How I do that?



from How to enforce developers to use square over than curly brackets?

No comments:

Post a Comment