Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firmnav/eslint-github-actions-formatter

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firmnav/eslint-github-actions-formatter

Formatter for ESLInt that outputs GitHub Actions annotations

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
155
decreased by-20.1%
Maintainers
2
Weekly downloads
 
Created
Source

eslint-github-actions-formatter

ESLint formatter to create annotations when running tests in GitHub Actions.

Installation

Add the package as a development dependency

npm:

npm install --save-dev @firmnav/eslint-github-actions-formatter

yarn:

yarn add --dev @firmnav/eslint-github-actions-formatter

Usage

Assuming you have a lint command in your package.json simply add the -f flag pointing to the formatter.

{
    ...
    "scripts": {
        "build": "...",
        "lint": "eslint 'src/**/*.{js,ts,tsx}' -f ./node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js",
        "test": "..."
    }
}

Then you can run your lint command as you would do normally:

$ npm run lint

Alternativly move the -f flag to where you invoke your lint command if you only want to use the formatter certain places, like CI.

$ npm run lint -f ./node_modules/@firmnav/eslint-github-actions-formatter/dist/formatter.js

Keywords

FAQs

Package last updated on 14 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc