function getRules(ignored) {
  if (!ignored || !ignored.length) {
    return undefined;
  }
  const result = {};
  ignored.forEach(rule => {
    result[rule] = { enabled: false };
  });
  return result;
}
Creates a map of rules to disable during the test.
@param {Array<String>?} ignored List of rule names to ignore during the test.
@return {Object|undefined} List of rules to be passed to test configuration or
`undefined` when not needed.