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

eslint-formatter-comment

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-formatter-comment

Compact formatter for ESLint errors including a JavaScript comment to disable the rule

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
1
Weekly downloads
 
Created
Source

eslint comment formatter

Prints eslint errors in a way allowing:

  • filename with line and column appended with colons as many editor CLIs will accept this as a command line argument and place the cursor exactly on the error using this information
  • Allows copy/pasting of a complete JavaScript comment to disable this rule in a specific location. Note that some rules have configuration more complicated that just on or off, but at the moment this formatter always just outputs ":0" to disable. Pull requests welcome to make this specific to each rule.

Note this is a copy and tweak job from the built-in "compact" eslint formatter.

Example Output

app/entries/operations/index.js:6:15 Error - Missing semicolon. /* eslint semi:0 */
app/entries/operations/index.js:6:10 Error - Strings must use doublequote. /* eslint quotes:0 */
app/entries/operations/index.js:6:4 Error - foo is defined but never used /* eslint no-unused-vars:0 */

#License

This formatter is MIT licensed. The ESLint License is included with this repository as well.

Keywords

FAQs

Package last updated on 14 Sep 2014

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