eslint-config-hapi
Advanced tools
Comparing version 8.0.0 to 8.0.1
{ | ||
"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'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31395
33
770
3
2