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

eslint-plugin-hapi

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-hapi - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

2

lib/index.js
'use strict';
var HapiCapitalizeModules = require('hapi-capitalize-modules');
var HapiForYou = require('hapi-for-you');
var HapiScopeStart = require('hapi-scope-start');

@@ -10,2 +11,3 @@ var NoArrowception = require('no-arrowception');

'hapi-capitalize-modules': HapiCapitalizeModules,
'hapi-for-you': HapiForYou,
'hapi-scope-start': HapiScopeStart,

@@ -12,0 +14,0 @@ 'no-arrowception': NoArrowception

3

package.json
{
"name": "eslint-plugin-hapi",
"version": "3.0.0",
"version": "4.0.0",
"description": "ESLint plugin containing hapi style guide rules",

@@ -27,2 +27,3 @@ "author": "Continuation Labs <contact@continuation.io> (http://continuation.io/)",

"hapi-capitalize-modules": "1.x.x",
"hapi-for-you": "1.x.x",
"hapi-scope-start": "2.x.x",

@@ -29,0 +30,0 @@ "no-arrowception": "1.x.x"

@@ -10,4 +10,4 @@ # eslint-plugin-hapi

- [`hapi-capitalize-modules`](https://www.npmjs.com/package/hapi-capitalize-modules) - Enforces capitalization of imported module variables.
- [`hapi-for-you`](https://www.npmjs.com/package/hapi-for-you) - Enforces `for` loop iterator variable rules and restricts loop nesting depth.
- [`hapi-scope-start`](https://www.npmjs.com/package/hapi-scope-start) - Enforces a new line at the beginning of function scope.
- [`no-arrowception`](https://www.npmjs.com/package/no-arrowception) - Prevents arrow functions that implicitly create additional arrow functions.
- [`no-shadow-relaxed`](https://www.npmjs.com/package/no-shadow-relaxed) - Extension of ESLint's native `no-shadow` rule that allows certain variable names to be ignored.

@@ -20,4 +20,5 @@ 'use strict';

expect(rules.length).to.equal(3);
expect(rules.length).to.equal(4);
expect(rules.indexOf('hapi-capitalize-modules')).to.not.equal(-1);
expect(rules.indexOf('hapi-for-you')).to.not.equal(-1);
expect(rules.indexOf('hapi-scope-start')).to.not.equal(-1);

@@ -24,0 +25,0 @@ expect(rules.indexOf('no-arrowception')).to.not.equal(-1);

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