Added a few new points to the Linting guide (#34146)
Added a description of how linters can help using a helpful response from https://stackoverflow.com/questions/8503559/what-is-linting
This commit is contained in:
committed by
Nishant Mishra
parent
4553f31284
commit
3a6594f1fb
@ -4,6 +4,14 @@ title: Code Linting
|
|||||||
|
|
||||||
Linting is the process of running a program that analyzes your code for programmatic and stylistic errors. A linting tool, or a linter, marks or flags any potential errors in your code such as syntax errors or incorrectly spelled variable names. This can save time and help you write better code.
|
Linting is the process of running a program that analyzes your code for programmatic and stylistic errors. A linting tool, or a linter, marks or flags any potential errors in your code such as syntax errors or incorrectly spelled variable names. This can save time and help you write better code.
|
||||||
|
|
||||||
|
Linters will go through your code, and highlight
|
||||||
|
|
||||||
|
- formatting discrepancy
|
||||||
|
- non-adherence to coding standards and conventions
|
||||||
|
- pinpointing possible logical errors in your program
|
||||||
|
|
||||||
|
Running a linter on your code makes sure it follows best practices, is readable and easy to maintain.
|
||||||
|
|
||||||
Linters can be installed using `npm` or another package manager. Linters can be used from the command line by passing in files. Linters are also available as plugins for tools and sometimes they are directly integrated into editors.
|
Linters can be installed using `npm` or another package manager. Linters can be used from the command line by passing in files. Linters are also available as plugins for tools and sometimes they are directly integrated into editors.
|
||||||
|
|
||||||
Here are some popular Javascript Linters:
|
Here are some popular Javascript Linters:
|
||||||
|
Reference in New Issue
Block a user