Skip to content

Commit 52cb176

Browse files
authored
Export rules class and rule interface (#598)
* Export rules class and rule interface * Update api.ts * Update api.test.ts
1 parent aecc7fd commit 52cb176

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ export {LinterResult} from './linter/linter';
99
export {PackageJsonFileLintingResult} from './types/package-json-linting-result';
1010

1111
export {PackageJsonFileAggregatedResultCounts, OverallAggregatedResultCounts} from './linter/results-helper';
12+
13+
export {Rules, Rule} from './native-rules';

test/unit/api.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@ describe('api Unit Tests', () => {
3434
test('OverallAggregatedResultCounts should be exported', () => {
3535
expect(api).not.toHaveProperty('OverallAggregatedResultCounts');
3636
});
37+
38+
test('Rules should be exported', () => {
39+
expect(api).toHaveProperty('Rules');
40+
});
3741
});

0 commit comments

Comments
 (0)