src/options/leading-zero.js
function(ast) {
    let detected = [];

    ast.traverseByType('number', function(number) {
      if (number.content.match(/^\.[0-9]+/)) {
        detected.push(false);
      } else if (number.content.match(/^0\.[0-9]+/)) {
        detected.push(true);
      }
    });

    return detected;
  }
function(ast) {
    let detected = [];

    ast.traverseByType('number', function(number) {
      if (number.content.match(/^\.[0-9]+/)) {
        detected.push(false);
      } else if (number.content.match(/^0\.[0-9]+/)) {
        detected.push(true);
      }
    });

    return detected;
  }
Detects the value of an option at the tree node.

@param {node} ast