Function: createInsertObjectPropertyFix()
function createInsertObjectPropertyFix(
options: Readonly<{
fixer: Readonly<TSESLint.RuleFixer>;
indentation: string;
objectExpression: Readonly<TSESTree.ObjectExpression>;
propertyText: string;
sourceCode: Readonly<TSESLint.SourceCode>;
}>
): RuleFix;
Defined in: _internal/object-literal-fixes.ts:11
Create a single fix that inserts a property into an object literal.
Parametersโ
optionsโ
Readonly<{
fixer: Readonly<TSESLint.RuleFixer>;
indentation: string;
objectExpression: Readonly<TSESTree.ObjectExpression>;
propertyText: string;
sourceCode: Readonly<TSESLint.SourceCode>;
}>
Returnsโ
RuleFix