Linting
  • 09 Nov 2022
  • Dark
    Light
  • PDF

Linting

  • Dark
    Light
  • PDF

Article Summary

All Itential built adapters as well as adapters built by the Adapter Builder include lint rules and scripts. In order to run lint, you need to make sure the adapter devDependencies have been loaded.

Lint the adapter when you first install it to make sure it lints clean. To do this run npm run lint:errors in the /adapter-home-dir. While linting errors are not always related to run time issues, fixing linting issues can often help you prevent run time issues from occurring. Most adapters have a large number of warnings so we are not really concerned about those. By running lint:errors instead of just lint, you will not see all the warnings, only the errors. This makes it much easier to find the issues that could be impacting your adapter.

As a best practice always make sure the adapter lints clean after making any code or configuration changes.

Note: If the adapter does not lint properly, the adapter may fail to load when IAP is restarted. Lint issues can also cause runtime issues with calls to the other system.


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.