JavaScript source code conventions within ECL repository are enforced through ESlint linter.
Code within the ECL module composed by components' APIs should not violate the linter rules and should not mutate globals outside the module.
For details regarding the ECL JavaScript API, please refer to the main JavaScript documentation page.
ECL ESlint rules are based on the most widely-adopted Airbnb Style Guide.
ECL repository uses prettier formatter for JavaScript. An integration with ESlint is achieved through eslint-config-prettier
and eslint-plugin-prettier
.
On each commit, a hook attempts to fix all issues violating the ESlint conventions and format modified JavaScript code.
Please refer to our guide for project-specific linting rules