lib/rules/indent.js
function TSPropertySignatureToProperty(node, type = "Property") {
            return {
                type,
                key: node.key,
                value: node.value || node.typeAnnotation,

                // Property flags
                computed: false,
                method: false,
                kind: "init",
                // this will stop eslint from interrogating the type literal
                shorthand: true,

                // location data
                parent: node.parent,
                range: node.range,
                loc: node.loc,
            };
        }
function TSPropertySignatureToProperty(node, type = "Property") {
            return {
                type,
                key: node.key,
                value: node.value || node.typeAnnotation,

                // Property flags
                computed: false,
                method: false,
                kind: "init",
                // this will stop eslint from interrogating the type literal
                shorthand: true,

                // location data
                parent: node.parent,
                range: node.range,
                loc: node.loc,
            };
        }
function TSPropertySignatureToProperty ( node , type = "Property" ) { return { type , key : node . key , value : node . value || node . typeAnnotation , // Property flags computed : false , method : false , kind : "init" , // this will stop eslint from interrogating the type literal shorthand : true , // location data parent : node . parent , range : node . range , loc : node . loc , } ; }
Converts from a TSPropertySignature to a Property
@param {Object} node a TSPropertySignature node
@param {string} [type] the type to give the new node
@returns {Object} a Property node
Converts from a TSPropertySignature to a Property