Linters find potential errors and/or formatting inconsistencies in your code.
Some will automatically fix your code for you. Most are configurable, but others are opinionated (meaning you must subscribe to the given rules without changing anything).