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

human.js

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

human.js

test

  • 0.1.0
  • latest
  • npm
  • Socket score

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

human.js

Ensure your JavaScript is readable by humans.

human.js lays out a set of guiding principles for writing code which is more readable. To accompy these principles and allow you to incorporate them into your work more easily, it also provides a set of eslint rules, exported as a plugin.

NOTE: Currently under reconstruction. I'll be adding new rules and principles as often as I can. When this becomes useful, I'll cut 1.0.0 and publish this.

Install

$ npm install --save-dev human.js

Usage

The project exports an eslint plugin. You should configure your .eslintrc or package.json files to use these rules.

{
  "env": {
    "es6": true
  },
  "plugins": [
    "human.js"
  ],
  "rules": {
    "human/no-loops": "error",
    "human/no-else": "error",
    "human/no-numeric-literal-calls": "error",
    "human/no-plus-new": "error",
    "human/no-tilde-floor": "error",
    "human/no-unary-index-of": "error",
    "human/no-bang-bang": "error"
  }
}

Rules

Keywords

FAQs

Package last updated on 22 Aug 2016

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