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

eslint-config-hapi

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-hapi - npm Package Compare versions

Comparing version 8.0.0 to 8.0.1

test/fixtures/hapi-capitalize-modules.js

2

package.json
{
"name": "eslint-config-hapi",
"version": "8.0.0",
"version": "8.0.1",
"description": "Shareable ESLint config for the hapi ecosystem",

@@ -5,0 +5,0 @@ "author": "Continuation Labs <contact@continuation.io> (http://continuation.io/)",

@@ -263,2 +263,23 @@ 'use strict';

it('enforces hapi/hapi-capitalize-modules', function (done) {
var output = lintFile('fixtures/hapi-capitalize-modules.js');
var results = output.results[0];
expect(output.errorCount).to.equal(0);
expect(output.warningCount).to.equal(1);
expect(results.errorCount).to.equal(0);
expect(results.warningCount).to.equal(1);
var msg = results.messages[0];
expect(msg.ruleId).to.equal('hapi/hapi-capitalize-modules');
expect(msg.severity).to.equal(1);
expect(msg.message).to.equal('Imported module variable name not capitalized.');
expect(msg.line).to.equal(4);
expect(msg.column).to.equal(7);
expect(msg.nodeType).to.equal('VariableDeclarator');
expect(msg.source).to.equal('const net = require(\'net\');');
done();
});
it('enforces hapi/no-arrowception', function (done) {

@@ -265,0 +286,0 @@ var output = lintFile('fixtures/no-arrowception.js');

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