mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix tslint error and add and block if tslint give error in the pipeline
This commit is contained in:
@@ -19,6 +19,7 @@ export interface HightlightTransformResult {
|
|||||||
text: string;
|
text: string;
|
||||||
changed: boolean;
|
changed: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class HighlightTransformService {
|
export class HighlightTransformService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -43,9 +44,9 @@ export class HighlightTransformService {
|
|||||||
isMatching = true;
|
isMatching = true;
|
||||||
return `<span class="${wrapperClass}">${match}</span>`;
|
return `<span class="${wrapperClass}">${match}</span>`;
|
||||||
});
|
});
|
||||||
return { text: result, changed: isMatching};
|
return { text: result, changed: isMatching };
|
||||||
} else {
|
} else {
|
||||||
return { text: result, changed: isMatching};
|
return { text: result, changed: isMatching };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@ cd $DIR/..
|
|||||||
|
|
||||||
echo "====== lint ====="
|
echo "====== lint ====="
|
||||||
|
|
||||||
npm run lint-lib
|
npm run lint-lib || exit 1
|
||||||
|
|
||||||
echo "====== clean ====="
|
echo "====== clean ====="
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user