Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.3 KB

README.md

File metadata and controls

48 lines (38 loc) · 1.3 KB

contrib/tools/eslint

This directory contains the driver for running the eslint analysis tool.

Installation

To make use of this driver, install eslint and two of its security plugins: eslint-plugin-security, eslint-plugin-security-node on the local machine. This can be done with installers/install.sh.

Configuration

To make use of the installed eslint, add a tools entry in the config file as instructed by the install script above.

{
  ...
  "tools": {
    ...
    "eslint-default": {
      "bin": "node",
      "args": [
        "/home/user-name/ossf-cve-benchmark/build/ts/contrib/tools/eslint/src/eslint.js",
      ],
      "options": {
        "eslintDir": "/home/user-name/analysis-tools/eslint-2020-12-08"
      }  
    }
    ...
  }
  ...
}

This will allow you to use the tool-id eslint-default in cli/bin run --tool eslint-default.

Supported versions

eslint.ts has been tested with the following versions of eslint and its plugins: