Skip to content

Commit f183e59

Browse files
authored
feat: export write method (#875)
1 parent e73c4f6 commit f183e59

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: src/api.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ export {PackageJsonFileLintingResult} from './types/package-json-linting-result'
1111
export {PackageJsonFileAggregatedResultCounts, OverallAggregatedResultCounts} from './linter/results-helper';
1212

1313
export {Rules, Rule} from './native-rules';
14+
15+
export {write} from './console-reporter';

Diff for: test/unit/api.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ describe('api Unit Tests', () => {
3838
test('Rules should be exported', () => {
3939
expect(api).toHaveProperty('Rules');
4040
});
41+
42+
test('Report writer should be exported', () => {
43+
expect(api).toHaveProperty('write');
44+
});
4145
});

0 commit comments

Comments
 (0)