all files / src/rules/ bugs-recommended.js

100% Statements 13/13
100% Branches 2/2
100% Functions 1/1
100% Lines 13/13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21               
"use strict";
 
let LintIssue = require("./../LintIssue");
const lintId = "bugs-recommended";
const lintType = "warning";
const nodeName = "bugs";
const message = "bugs is recommended";
const ruleType = "recommended";
 
let lint = function(packageJsonData) {
  if (!packageJsonData.hasOwnProperty(nodeName)) {
    return new LintIssue(lintId, lintType, nodeName, message);
  }
 
  return true;
};
 
module.exports.lint = lint;
module.exports.lintType = lintType;
module.exports.ruleType = ruleType;