New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/eslint-formatter-sarif

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/eslint-formatter-sarif

ESLint formatter for the SARIF (Static Analysis Results Interchange Format) v2.1.0 file format

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
103K
decreased by-34.81%
Maintainers
5
Weekly downloads
 
Created

What is @microsoft/eslint-formatter-sarif?

@microsoft/eslint-formatter-sarif is an ESLint formatter that outputs results in the SARIF (Static Analysis Results Interchange Format) format. SARIF is a standardized format for the output of static analysis tools, which makes it easier to integrate with other tools and systems that consume SARIF.

What are @microsoft/eslint-formatter-sarif's main functionalities?

SARIF Formatting

This feature allows you to configure ESLint to use the SARIF formatter. The code sample shows an ESLint configuration file that specifies the use of @microsoft/eslint-formatter-sarif as the formatter.

module.exports = {
  "extends": "eslint:recommended",
  "formatter": "@microsoft/eslint-formatter-sarif",
  "rules": {
    "no-unused-vars": "warn",
    "no-console": "off"
  }
};

Integration with CI/CD

This feature demonstrates how to integrate the SARIF formatter with a CI/CD pipeline. The code sample shows a package.json script that runs ESLint with the SARIF formatter and outputs the results to a file named results.sarif.

{
  "scripts": {
    "lint": "eslint . -f @microsoft/eslint-formatter-sarif -o results.sarif"
  }
}

Other packages similar to @microsoft/eslint-formatter-sarif

Keywords

FAQs

Package last updated on 12 Apr 2024

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