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

eslint-friendly-formatter

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-friendly-formatter

simple formatter/reporter for eslint that's friendly with Sublime Text and iterm2 'click to open file' functionality

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
136K
increased by13.76%
Maintainers
1
Weekly downloads
 
Created

What is eslint-friendly-formatter?

eslint-friendly-formatter is an npm package designed to format ESLint results in a more readable and user-friendly manner. It helps developers quickly understand and address linting issues in their code by providing clear and concise output.

What are eslint-friendly-formatter's main functionalities?

Readable Output

This feature provides a more readable output for ESLint results. The code sample demonstrates how to use eslint-friendly-formatter to format the results of an ESLint report and print them to the console.

const eslintFriendlyFormatter = require('eslint-friendly-formatter');
const CLIEngine = require('eslint').CLIEngine;

const cli = new CLIEngine({});
const report = cli.executeOnFiles(['src/**/*.js']);
const formattedResults = eslintFriendlyFormatter(report.results);
console.log(formattedResults);

Integration with ESLint CLI

This feature shows how to integrate eslint-friendly-formatter directly with the ESLint CLI. The code sample demonstrates setting the formatter option to eslint-friendly-formatter and then executing ESLint on a set of files.

const { CLIEngine } = require('eslint');
const eslintFriendlyFormatter = require('eslint-friendly-formatter');

const cli = new CLIEngine({
  formatter: eslintFriendlyFormatter
});
const report = cli.executeOnFiles(['src/**/*.js']);
console.log(cli.getFormatter()(report.results));

Other packages similar to eslint-friendly-formatter

Keywords

FAQs

Package last updated on 09 Apr 2018

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