Ultima and ng lint

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
NGAllie
Posts: 24
Joined: 21 Sep 2016, 20:36

28 Mar 2017, 17:06

Hi,

I want to start using the ng lint tool provided by Angular-cli to easily validate that our code is compliant with the best practices documented in Angular style guide. We are keeping not only the Ultima app component and menu related components, but also the demo pages (that we have moved in a separate module), in our application during development so that it would be fast and easy to access the samples.

When we run ng lint in our application, we are getting errors coming from the Ultima components and we have to filter them in order to find what we have to change in our application. We could also change the code provided with the Ultima template, but we will have to redo this process every time the template is upgraded.

It would sure be useful if you could clean the code with ng lint (default configurations) before you release new versions of Ultima. Most of the errors reported are easy to change (missing or trailing white spaces, using const instead of let, etc.). You can also install the TSLint extension in VsCode to help you fix most of the errors. There are also a few changes involving renaming components or components' selector.

Thanks

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

29 Mar 2017, 08:50

Hi,

Thanks for the suggestion we will discuss it with my colleagues and get back to you.

NGAllie
Posts: 24
Joined: 21 Sep 2016, 20:36

29 Mar 2017, 15:12

Thanks,

For your information, I have tried "ng lint --fix" with the Ultima 2.1.0 template project and I got 473 errors automatically fixed by the linter. The template still works after this clean up so it looks safe to use based on my first tests. That leaves around 100 "errors" to fix in the template with most being easy to fix.

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

29 Mar 2017, 16:43

Thanks for the additional information. We discussed this and decided to fix this for our further releases.

NGAllie
Posts: 24
Joined: 21 Sep 2016, 20:36

29 Mar 2017, 20:38

Great! Thank you very much!

User avatar
DarthMaul
Posts: 582
Joined: 23 Nov 2015, 21:20

29 Mar 2017, 21:12

We will inform you from here after this fix.

Aorewen
Posts: 34
Joined: 03 Nov 2016, 15:21

31 Mar 2017, 08:46

Thanks guys !

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 12 guests