Skip to content

Instantly share code, notes, and snippets.

const lineItemLabels = ['Item Amount', 'Description', 'Unit Price', 'Unit Quantity'];
const lintIssues = []
export function lint(response) {
let all_record_annotations = [];
if (response.annotations && response.records) {
for (const record of response.records) {
if(record.annotations) {
for (const ann in record.annotations) {
all_record_annotations.push(ann.ref);