eslint-remote-tester
Version:
Tool for running ESLint on multiple repositories
21 lines (20 loc) • 485 B
JavaScript
/**
* A single source for the scan's results
*/
class ResultsStore {
results = [];
comparisonResults = null;
addResults(...results) {
results.forEach(result => this.results.push(result));
}
getResults() {
return this.results;
}
setComparisonResults(comparisonResults) {
this.comparisonResults = comparisonResults;
}
getComparisonResults() {
return this.comparisonResults;
}
}
export default new ResultsStore();