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;
|
||||
changed: boolean;
|
||||
}
|
||||
|
||||
export class HighlightTransformService {
|
||||
|
||||
/**
|
||||
@@ -43,9 +44,9 @@ export class HighlightTransformService {
|
||||
isMatching = true;
|
||||
return `<span class="${wrapperClass}">${match}</span>`;
|
||||
});
|
||||
return { text: result, changed: isMatching};
|
||||
return { text: result, changed: isMatching };
|
||||
} else {
|
||||
return { text: result, changed: isMatching};
|
||||
return { text: result, changed: isMatching };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ cd $DIR/..
|
||||
|
||||
echo "====== lint ====="
|
||||
|
||||
npm run lint-lib
|
||||
npm run lint-lib || exit 1
|
||||
|
||||
echo "====== clean ====="
|
||||
|
||||
|
Reference in New Issue
Block a user