argulint
v0.2.1
Published
Tired of your linter being nice to you? Want to be treated like the terrible developer you are? Welcome.
Maintainers
Readme
Argulint
Tired of your linter not making you feel like the terrible developer you really are? Welcome.
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
standardjsunder the hood - Which means it still works with standard options in the
package.jsonas well as the--fixargument 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:
insultis the actual picked insultlinting erroris the actual error that was foundlinesis the line(s) and column(s) of the error in this format:line:columnendingis 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