Sha256: 0b1cc3107dd1a20ab47213eb19a1afee8307c7e5d15ab4f78ac097673d4643e0

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const skippable = [
    "array",
    "dyna_symbol",
    "hash",
    "heredoc",
    "lambda",
    "regexp_literal"
];
function skipAssignIndent(node) {
    return (skippable.includes(node.type) ||
        (node.type === "call" && skipAssignIndent(node.body[0])));
}
exports.default = skipAssignIndent;

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prettier-2.0.0 dist/utils/skipAssignIndent.js
prettier-2.0.0.pre.rc4 dist/utils/skipAssignIndent.js
prettier-2.0.0.pre.rc3 dist/utils/skipAssignIndent.js
prettier-2.0.0.pre.rc2 dist/utils/skipAssignIndent.js
prettier-2.0.0.pre.rc1 dist/utils/skipAssignIndent.js