A linting tool is used to automatically scan your code for potential errors and style issues, a process known as linting.