Hello techies👋,
This article will be addressing an underrated process just as last week's, Why Write Tests? but it will be centred on Linting.
Firstly, what is linting?
Linting is an automated checking of source code for programmatic and stylistic errors.
We all tend to make little mistakes like wrong indentation(whitespace), omitting necessary symbols etc. This is where the importance of linting comes in.
Let's talk a little about the importance,
- As aforementioned, it helps to syntactically correct codes, saves debugging stress
- It formats and properly arrange the codes, making them readable and more accessible(neat code)
Linting Tools
These are tools(packages) used to lint codes.
There are a lot of linting tools and they are actually connected to programming languages. A linting tool can only lint specific languages not all.
Examples of linting tools
These are some languages and some of their linting tool.
- Python
- PEP
- Black
- HTML and CSS
- Prettier
- Javascript
- JSLint
- ESLint
- PHP
- Phplint
- Java
- Checkstyle
- Lightrun
- Flutter
- Flutter lints
Thanks for reading through this article and I hope you found it useful, you can connect with me on;
Bye 👋.