eslint-formatter-gha
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.0 • Public • Published

    ESLint Formatter for GitHub Actions

    A custom formatter for ESLint that creates annotations for GitHub Actions.

    Installation

    npm install --save-dev eslint-formatter-gha

    Usage

    eslint . -f gha

    If eslint-formatter-gha detects that ESLint runs in a GitHub runner (GITHUB_ACTIONS environment variable has the value of true), it creates annotations for GitHub Actions. Otherwise, it invokes ESLint's stylish formatter.

    Since 1.1.0: if the SONARSCANNER environment variable equals true, the formatter produces the result in the JSON format. Additionally, if the GITHUB_WORKSPACE environment variable has a non-empty value, eslint-formatter-gha writes the generated JSON into ${GITHUB_WORKSPACE}/eslint-report.json file.

    Install

    npm i eslint-formatter-gha

    DownloadsWeekly Downloads

    1,029

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    7.64 kB

    Total Files

    6

    Last publish

    Collaborators

    • wwa