lib/rules/key-spacing.js
function verifySpacing(node, lineOptions) {
            const actual = getPropertyWhitespace(node);

            if (actual) { // Object literal getters/setters lack colons
                report(node, "key", actual.beforeColon, lineOptions.beforeColon, lineOptions.mode);
                report(node, "value", actual.afterColon, lineOptions.afterColon, lineOptions.mode);
            }
        }
function verifySpacing(node, lineOptions) {
            const actual = getPropertyWhitespace(node);

            if (actual) { // Object literal getters/setters lack colons
                report(node, "key", actual.beforeColon, lineOptions.beforeColon, lineOptions.mode);
                report(node, "value", actual.afterColon, lineOptions.afterColon, lineOptions.mode);
            }
        }
function verifySpacing ( node , lineOptions ) { const actual = getPropertyWhitespace ( node ) ; if ( actual ) { // Object literal getters/setters lack colons report ( node , "key" , actual . beforeColon , lineOptions . beforeColon , lineOptions . mode ) ; report ( node , "value" , actual . afterColon , lineOptions . afterColon , lineOptions . mode ) ; } }
Verifies spacing of property conforms to specified options.
@param  {ASTNode} node Property node being evaluated.
@param {Object} lineOptions Configured singleLine or multiLine options
@returns {void}
Verifies spacing of property conforms to specified options .