Socket
Socket
Sign inDemoInstall

argulint

Package Overview
Dependencies
302
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    argulint

Tired of your linter being nice to you? Want to be treated like the terrible developer you are? Welcome.


Version published
Maintainers
1
Install size
27.5 MB
Created

Changelog

Source

v0.2.1

Improved

  • Updated the README examples
  • Tweaked some punctuation

Readme

Source

Argulint

Tired of your linter not making you feel like the terrible developer you really are? Welcome.

JavaScript Style Guide

Click here to read about contributing

Argulint is a little linter wrapper that runs the standardjs lint process but adds a fun twist to it.

The only goal is to have a little fun with your linting.

Features

  • A simple CLI tool, it's just running standardjs under the hood
  • Which means it still works with standard options in the package.json as well as the --fix argument in the CLI
  • Re formats the output with some extra organization
  • Insults your mistakes for fun

How To

Intall:

npm i -D argulint

Once installed you would use argulint just like you can use the standardjs linter via the CLI. It supports the --fix flag as well as using the standard options built into your package.json file.

Usage example:

argulint src/place/*.js

Or with the flag:

argulint --fix src/place/*.js

Note: There is no API this is strictly used within the CLI

Generation

Messages are generated in the following format:

{insult}
  {linting error} {lines} {ending}

Where:

  • insult is the actual picked insult
  • linting error is the actual error that was found
  • lines is the line(s) and column(s) of the error in this format: line:column
  • ending is the chosen ending from our endings list

Example

Example output looks something like this:

==============Totals==============
# of Errors: 6 - Alright you're done get out.
# Fixable: 5 - Put me in coach!
==================================

File: /path/to/argulint/tests/index.js
==============Stats==============
# of Errors: 6 - Uh oh!
# Fixable: 5 - I got this.
==================================
You garbage mammal!
   Extra semicolon. on line 1:10 I think we're done here
You boner jockey!
   Extra semicolon. on line 2:10 Thanks, I hate it
You're a capitalist pig!
   Extra semicolon. on line 3:10 [Forced laughing]
Remind me to always bet against you.
   Extra semicolon. on line 4:10 This is why I have trust issues
I think you are a general offense and everyone should beat you.
   'g' is assigned a value but never used. between line 5:7 and 5:8 ctrl + a + del
Lying, crying, spying, prying ultra-pig!
   Extra semicolon. on line 5:13 Thanks, I hate it

Keywords

FAQs

Last updated on 05 Sep 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc