ESLint Integration with DefectDojo
ESLint is an open-source pluggable JavaScript and ECMAScript linting tool that statically analyzes code to identify and report on problematic patterns, code quality issues, and potential bugs to help developers write consistent, error-free JavaScript across browser and server environments. The tool integrates into most text editors and CI/CD pipelines, offering fully customizable rules and automatic fixing capabilities that enable teams to enforce coding standards, prevent common mistakes, and maintain high code quality throughout the development lifecycle.
Data Granularity: What Gets Imported
The following fields are captured from ESLint results and surfaced in DefectDojo findings:
| Field | Source | Notes |
|---|---|---|
| Title | Finding name from the scan | Matched to the tool's own naming |
| Severity | Critical / High / Medium / Low / Info | Mapped from the tool's own severity scale |
| Description | Finding detail from the report | Includes what the issue is and why it matters |
| Mitigation | Remediation guidance | Where the tool provides it |
Importing Into DefectDojo
Use the DefectDojo import API to create a new Test under the relevant Engagement for your product. The request body:
{
"scan_type": "ESLint",
"engagement": "<engagement-id>",
"file": "results.json"
}