Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.63 KB

BP_046_en.md

File metadata and controls

43 lines (29 loc) · 1.63 KB

Validate your code with a Linter

Identifiers

GreenIT V2 V3 V4
35 33 46

Categories

Life cycle Tiers Responsible
3. Implementation User/Device Software Architect/Developer

Indications

Priority Implementation difficulty Ecological impact
3 3 2
Saved resources
Processor

Description

ESLint code quality analyzer checks that the JavaScript syntax will be understood by all browsers. The resulting code respects syntax constraints that make it easier and faster for interpreters to execute the code. Processor will therefore be solicited for a shorter time.

In modern development, adding different tools to your delivery process to ensure the quality of your code is recommended.

Example

We can use, for example:

Validation rule

The number of ... is equal to or less than
source code lines that are not validated by tools such as ESLint 0