Skip to content

Commit

Permalink
Export rules class and rule interface (#598)
Browse files Browse the repository at this point in the history
* Export rules class and rule interface

* Update api.ts

* Update api.test.ts
  • Loading branch information
tclindner committed Mar 13, 2022
1 parent aecc7fd commit 52cb176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api.ts
Expand Up @@ -9,3 +9,5 @@ export {LinterResult} from './linter/linter';
export {PackageJsonFileLintingResult} from './types/package-json-linting-result';

export {PackageJsonFileAggregatedResultCounts, OverallAggregatedResultCounts} from './linter/results-helper';

export {Rules, Rule} from './native-rules';
4 changes: 4 additions & 0 deletions test/unit/api.test.ts
Expand Up @@ -34,4 +34,8 @@ describe('api Unit Tests', () => {
test('OverallAggregatedResultCounts should be exported', () => {
expect(api).not.toHaveProperty('OverallAggregatedResultCounts');
});

test('Rules should be exported', () => {
expect(api).toHaveProperty('Rules');
});
});

0 comments on commit 52cb176

Please sign in to comment.